about summary refs log tree commit diff
path: root/clippy_dev/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2019-01-25 20:25:14 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2019-01-25 20:25:14 +0100
commit873fe11ca56d17de0fb52bea1adf27b02f00c018 (patch)
treea88b50843cf765c770aa0a196501e72801cb23c7 /clippy_dev/src
parentaca1b8112026d9707b8041abfd4349c9b865db1f (diff)
downloadrust-873fe11ca56d17de0fb52bea1adf27b02f00c018.tar.gz
rust-873fe11ca56d17de0fb52bea1adf27b02f00c018.zip
dependencies: update itertools from 0.7 to 0.8
Diffstat (limited to 'clippy_dev/src')
-rw-r--r--clippy_dev/src/lib.rs25
1 files changed, 15 insertions, 10 deletions
diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs
index 073b3a9e97f..1c7f372af6b 100644
--- a/clippy_dev/src/lib.rs
+++ b/clippy_dev/src/lib.rs
@@ -82,6 +82,7 @@ pub fn gen_lint_group_list(lints: Vec<Lint>) -> Vec<String> {
             }
         })
         .sorted()
+        .collect::<Vec<String>>()
 }
 
 /// Generates the `pub mod module_name` list in `clippy_lints/src/lib.rs`.
@@ -98,6 +99,7 @@ pub fn gen_modules_list(lints: Vec<Lint>) -> Vec<String> {
         .unique()
         .map(|module| format!("pub mod {};", module))
         .sorted()
+        .collect::<Vec<String>>()
 }
 
 /// Generates the list of lint links at the bottom of the README
@@ -118,17 +120,20 @@ pub fn gen_changelog_lint_list(lints: Vec<Lint>) -> Vec<String> {
 
 /// Generates the `register_removed` code in `./clippy_lints/src/lib.rs`.
 pub fn gen_deprecated(lints: &[Lint]) -> Vec<String> {
-    itertools::flatten(lints.iter().filter_map(|l| {
-        l.clone().deprecation.and_then(|depr_text| {
-            Some(vec![
-                "    store.register_removed(".to_string(),
-                format!("        \"{}\",", l.name),
-                format!("        \"{}\",", depr_text),
-                "    );".to_string(),
-            ])
+    lints
+        .iter()
+        .filter_map(|l| {
+            l.clone().deprecation.and_then(|depr_text| {
+                Some(vec![
+                    "    store.register_removed(".to_string(),
+                    format!("        \"{}\",", l.name),
+                    format!("        \"{}\",", depr_text),
+                    "    );".to_string(),
+                ])
+            })
         })
-    }))
-    .collect()
+        .flatten()
+        .collect::<Vec<String>>()
 }
 
 /// Gathers all files in `src/clippy_lints` and gathers all lints inside