Auto update lint count in Clippy book
This commit is contained in:
parent
c9cbead656
commit
b551928800
@ -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…
x
Reference in New Issue
Block a user