Use impl Iterator in arg position in clippy_dev

Small refactoring pulled out of work on #3266.
This should make the methods a bit more flexible.
This commit is contained in:
Philipp Hansch
2018-10-11 08:34:51 +02:00
parent 928a6d3dc7
commit 759ceb9840
2 changed files with 4 additions and 4 deletions

View File

@@ -51,5 +51,5 @@ fn print_lints() {
}
}
println!("there are {} lints", Lint::active_lints(&lint_list).count());
println!("there are {} lints", Lint::active_lints(lint_list.into_iter()).count());
}