File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 40
40
rustc -Vv
41
41
cargo -V
42
42
cargo build
43
+ env :
44
+ RUSTFLAGS : ' -D warnings'
43
45
44
46
- name : test
45
47
run : cargo test
48
+ env :
49
+ RUSTFLAGS : ' -D warnings'
Original file line number Diff line number Diff line change @@ -32,16 +32,15 @@ impl IgnorePathSet {
32
32
33
33
#[ cfg( test) ]
34
34
mod test {
35
- use std:: path:: { Path , PathBuf } ;
36
-
37
- use crate :: config:: { Config , FileName } ;
38
- use crate :: ignore_path:: IgnorePathSet ;
39
-
40
35
use rustfmt_config_proc_macro:: nightly_only_test;
41
36
42
37
#[ nightly_only_test]
43
38
#[ test]
44
39
fn test_ignore_path_set ( ) {
40
+ use crate :: config:: { Config , FileName } ;
41
+ use crate :: ignore_path:: IgnorePathSet ;
42
+ use std:: path:: { Path , PathBuf } ;
43
+
45
44
let config =
46
45
Config :: from_toml ( r#"ignore = ["foo.rs", "bar_dir/*"]"# , Path :: new ( "" ) ) . unwrap ( ) ;
47
46
let ignore_path_set = IgnorePathSet :: from_ignore_list ( & config. ignore ( ) ) . unwrap ( ) ;
Original file line number Diff line number Diff line change 3
3
#![ warn( unreachable_pub) ]
4
4
#![ recursion_limit = "256" ]
5
5
#![ allow( clippy:: match_like_matches_macro) ]
6
- #![ allow( unreachable_pub) ]
7
6
8
7
#[ macro_use]
9
8
extern crate derive_new;
You can’t perform that action at this time.
0 commit comments