Skip to content

Commit b551928

Browse files
committed
Auto update lint count in Clippy book
1 parent c9cbead commit b551928

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clippy_dev/src/update_lints.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ fn generate_lint_files(
5858
},
5959
);
6060

61+
replace_region_in_file(
62+
update_mode,
63+
Path::new("book/src/README.md"),
64+
"[There are over ",
65+
" lints included in this crate!]",
66+
|res| {
67+
write!(res, "{}", round_to_fifty(usable_lints.len())).unwrap();
68+
},
69+
);
70+
6171
replace_region_in_file(
6272
update_mode,
6373
Path::new("CHANGELOG.md"),

0 commit comments

Comments
 (0)