dependencies: update itertools from 0.7 to 0.8

This commit is contained in:
Matthias Krüger
2019-01-25 20:25:14 +01:00
parent aca1b81120
commit 873fe11ca5
3 changed files with 17 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ edition = "2018"
[dependencies] [dependencies]
clap = "~2.32" clap = "~2.32"
itertools = "0.7" itertools = "0.8"
regex = "1" regex = "1"
lazy_static = "1.0" lazy_static = "1.0"
walkdir = "2" walkdir = "2"

View File

@@ -82,6 +82,7 @@ pub fn gen_lint_group_list(lints: Vec<Lint>) -> Vec<String> {
} }
}) })
.sorted() .sorted()
.collect::<Vec<String>>()
} }
/// Generates the `pub mod module_name` list in `clippy_lints/src/lib.rs`. /// 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() .unique()
.map(|module| format!("pub mod {};", module)) .map(|module| format!("pub mod {};", module))
.sorted() .sorted()
.collect::<Vec<String>>()
} }
/// Generates the list of lint links at the bottom of the README /// Generates the list of lint links at the bottom of the README
@@ -118,7 +120,9 @@ pub fn gen_changelog_lint_list(lints: Vec<Lint>) -> Vec<String> {
/// Generates the `register_removed` code in `./clippy_lints/src/lib.rs`. /// Generates the `register_removed` code in `./clippy_lints/src/lib.rs`.
pub fn gen_deprecated(lints: &[Lint]) -> Vec<String> { pub fn gen_deprecated(lints: &[Lint]) -> Vec<String> {
itertools::flatten(lints.iter().filter_map(|l| { lints
.iter()
.filter_map(|l| {
l.clone().deprecation.and_then(|depr_text| { l.clone().deprecation.and_then(|depr_text| {
Some(vec![ Some(vec![
" store.register_removed(".to_string(), " store.register_removed(".to_string(),
@@ -127,8 +131,9 @@ pub fn gen_deprecated(lints: &[Lint]) -> Vec<String> {
" );".to_string(), " );".to_string(),
]) ])
}) })
})) })
.collect() .flatten()
.collect::<Vec<String>>()
} }
/// Gathers all files in `src/clippy_lints` and gathers all lints inside /// Gathers all files in `src/clippy_lints` and gathers all lints inside

View File

@@ -18,7 +18,7 @@ edition = "2018"
[dependencies] [dependencies]
cargo_metadata = "0.6.2" cargo_metadata = "0.6.2"
itertools = "0.7" itertools = "0.8"
lazy_static = "1.0.2" lazy_static = "1.0.2"
matches = "0.1.7" matches = "0.1.7"
quine-mc_cluskey = "0.2.2" quine-mc_cluskey = "0.2.2"