about summary refs log tree commit diff
path: root/lintcheck/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lintcheck/src/main.rs')
-rw-r--r--lintcheck/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lintcheck/src/main.rs b/lintcheck/src/main.rs
index 3a022b343a4..58cb42316fd 100644
--- a/lintcheck/src/main.rs
+++ b/lintcheck/src/main.rs
@@ -523,7 +523,7 @@ fn gather_stats(clippy_warnings: &[ClippyWarning]) -> (String, HashMap<&String,
         .for_each(|wrn| *counter.entry(&wrn.lint_type).or_insert(0) += 1);
 
     // collect into a tupled list for sorting
-    let mut stats: Vec<(&&String, &usize)> = counter.iter().map(|(lint, count)| (lint, count)).collect();
+    let mut stats: Vec<(&&String, &usize)> = counter.iter().collect();
     // sort by "000{count} {clippy::lintname}"
     // to not have a lint with 200 and 2 warnings take the same spot
     stats.sort_by_key(|(lint, count)| format!("{count:0>4}, {lint}"));