File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use std:: path:: Path ;
4
4
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
-
19
5
fn is_edition_2018 ( mut line : & str ) -> bool {
20
6
line = line. trim ( ) ;
21
7
line == "edition = \" 2018\" " || line == "edition = \' 2018\' "
@@ -24,7 +10,7 @@ fn is_edition_2018(mut line: &str) -> bool {
24
10
pub fn check ( path : & Path , bad : & mut bool ) {
25
11
super :: walk (
26
12
path,
27
- & mut |path| filter_dirs ( path) || path. ends_with ( "src/test" ) ,
13
+ & mut |path| super :: filter_dirs ( path) || path. ends_with ( "src/test" ) ,
28
14
& mut |entry, contents| {
29
15
let file = entry. path ( ) ;
30
16
let filename = file. file_name ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments