summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 872c41d3..6470622a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -227,7 +227,7 @@ fn run() -> Result<()> {
if app.matches.is_present("list-languages") {
let mut languages = assets.syntax_set.syntaxes().to_owned();
- languages.sort_by(|a, b| a.name.to_uppercase().cmp(&b.name.to_uppercase()));
+ languages.sort_by_key(|lang| lang.name.to_uppercase());
let longest = languages
.iter()