Clean up update_lints
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user