Auto update lint count in Clippy book

This commit is contained in:
flip1995 2022-04-17 20:43:43 +02:00 committed by Philipp Krones
parent c9cbead656
commit b551928800
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5

View file

@ -58,6 +58,16 @@ fn generate_lint_files(
},
);
replace_region_in_file(
update_mode,
Path::new("book/src/README.md"),
"[There are over ",
" lints included in this crate!]",
|res| {
write!(res, "{}", round_to_fifty(usable_lints.len())).unwrap();
},
);
replace_region_in_file(
update_mode,
Path::new("CHANGELOG.md"),