mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 22:18:40 +00:00
Auto update lint count in Clippy book
This commit is contained in:
parent
c9cbead656
commit
b551928800
1 changed files with 10 additions and 0 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Reference in a new issue