Skip to content

Commit d980715

Browse files
committed
tidy: Remove edition filter exceptions.
These exceptions are no longer necessary.
1 parent 3eebf9b commit d980715

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/tools/tidy/src/edition.rs

+1-15
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22
33
use std::path::Path;
44

5-
fn filter_dirs(path: &Path) -> bool {
6-
// FIXME: just use super::filter_dirs after the submodules are updated.
7-
if super::filter_dirs(path) {
8-
return true;
9-
}
10-
let skip = [
11-
"src/doc/book/second-edition",
12-
"src/doc/book/2018-edition",
13-
"src/doc/book/ci/stable-check",
14-
"src/doc/reference/stable-check",
15-
];
16-
skip.iter().any(|p| path.ends_with(p))
17-
}
18-
195
fn is_edition_2018(mut line: &str) -> bool {
206
line = line.trim();
217
line == "edition = \"2018\"" || line == "edition = \'2018\'"
@@ -24,7 +10,7 @@ fn is_edition_2018(mut line: &str) -> bool {
2410
pub fn check(path: &Path, bad: &mut bool) {
2511
super::walk(
2612
path,
27-
&mut |path| filter_dirs(path) || path.ends_with("src/test"),
13+
&mut |path| super::filter_dirs(path) || path.ends_with("src/test"),
2814
&mut |entry, contents| {
2915
let file = entry.path();
3016
let filename = file.file_name().unwrap();

0 commit comments

Comments
 (0)