on master help sign in
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.

commit9c1657134736b9deb1563d5d6cabe8f06904a8aa authorMartin Nordholts <enselic@gmail.com> dateMon 28 Dec 2020, 16:56 (6 years ago) parent2765c6b
1 file changed+1−1
src/bin/bat/main.rs+1−1
src/bin/bat/main.rs+1−1
@@ -162,7 +162,7 @@ pub fn get_languages(config: &Config) -> Result<String> {
162162 num_chars += new_chars;
163163 result += &format!("{}", style.paint(&word[..]));
164164 if extension.peek().is_some() {
165− result += &format!("{}", comma_separator);
165+ result += comma_separator;
166166 }
167167 }
168168 result += "\n";