mirror of
https://github.com/sharkdp/bat
synced 2024-11-12 13:10:42 +00:00
bat --list-languages: remove unnecessary format!() call
To trigger/verify the changed code, run bat --list-languages # or -L This is the last clippy warning in the code that you get if you run cargo clippy --all-targets --all-features -- --allow clippy::style so by fixing it it becomes easier to spot when a new warning is introduced (that does not belong to the clippy category clippy::style). And by making it easy to spot new warnings, we increase chance of such regressions not ending up in the code base.
This commit is contained in:
parent
2765c6ba3b
commit
9c16571347
@ -162,7 +162,7 @@ pub fn get_languages(config: &Config) -> Result<String> {
|
||||
num_chars += new_chars;
|
||||
result += &format!("{}", style.paint(&word[..]));
|
||||
if extension.peek().is_some() {
|
||||
result += &format!("{}", comma_separator);
|
||||
result += comma_separator;
|
||||
}
|
||||
}
|
||||
result += "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user