RIIR update_lints: Update changelog links
This now also updates the link list at the bottom of the changelog.
This commit is contained in:
@@ -59,8 +59,8 @@ fn print_lints() {
|
||||
}
|
||||
|
||||
fn update_lints() {
|
||||
let lint_list = gather_all();
|
||||
let usable_lints: Vec<Lint> = Lint::usable_lints(lint_list).collect();
|
||||
let lint_list: Vec<Lint> = gather_all().collect();
|
||||
let usable_lints: Vec<Lint> = Lint::usable_lints(lint_list.clone().into_iter()).collect();
|
||||
let lint_count = usable_lints.len();
|
||||
|
||||
replace_region_in_file(
|
||||
@@ -74,4 +74,12 @@ fn update_lints() {
|
||||
]
|
||||
}
|
||||
);
|
||||
|
||||
replace_region_in_file(
|
||||
"../CHANGELOG.md",
|
||||
"<!-- begin autogenerated links to lint list -->",
|
||||
"<!-- end autogenerated links to lint list -->",
|
||||
false,
|
||||
|| { gen_changelog_lint_list(lint_list.clone()) }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user