Clean up update_lints

This commit is contained in:
flip1995
2020-04-02 18:20:23 +02:00
parent 7907abea27
commit ffb2e41234
2 changed files with 14 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ pub fn run(update_mode: UpdateMode) {
"<!-- end autogenerated links to lint list -->",
false,
update_mode == UpdateMode::Change,
|| gen_changelog_lint_list(lint_list.clone()),
|| gen_changelog_lint_list(&lint_list),
)
.changed;
@@ -91,7 +91,7 @@ pub fn run(update_mode: UpdateMode) {
"end lints modules",
false,
update_mode == UpdateMode::Change,
|| gen_modules_list(lint_list.clone()),
|| gen_modules_list(&lint_list),
)
.changed;
@@ -110,9 +110,9 @@ pub fn run(update_mode: UpdateMode) {
.filter(|l| {
l.group == "correctness" || l.group == "style" || l.group == "complexity" || l.group == "perf"
})
.collect();
.collect::<Vec<_>>();
gen_lint_group_list(all_group_lints)
gen_lint_group_list(&all_group_lints)
},
)
.changed;
@@ -125,7 +125,7 @@ pub fn run(update_mode: UpdateMode) {
r#"\]\);"#,
false,
update_mode == UpdateMode::Change,
|| gen_lint_group_list(lints.clone()),
|| gen_lint_group_list(&lints),
)
.changed;
}