mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-18 16:50:33 +01:00
Using slice notation instead of as_ref
This commit is contained in:
parent
9342d0bb24
commit
a13eb60df3
@ -47,7 +47,7 @@ pub fn list_languages(assets: &HighlightingAssets, term_width: usize) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
num_chars += new_chars;
|
num_chars += new_chars;
|
||||||
print!("{}", Green.paint(word.as_ref()));
|
print!("{}", Green.paint(&word[..]));
|
||||||
if extension.peek().is_some() {
|
if extension.peek().is_some() {
|
||||||
print!("{}", comma_separator);
|
print!("{}", comma_separator);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user