File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ mod all_targets {
14
14
source_root : & str ,
15
15
exp_targets : & [ ExpTarget ] ,
16
16
exp_num_targets : usize ,
17
+ strategy : CargoFmtStrategy ,
17
18
) {
18
19
let root_path = Path :: new ( "tests/cargo-fmt/source" ) . join ( source_root) ;
19
20
let get_path = |exp : & str | PathBuf :: from ( & root_path) . join ( exp) . canonicalize ( ) . unwrap ( ) ;
20
21
let manifest_path = Path :: new ( & root_path) . join ( manifest_suffix) ;
21
- let targets = get_targets ( & CargoFmtStrategy :: All , Some ( manifest_path. as_path ( ) ) )
22
+ let targets = get_targets ( & strategy , Some ( manifest_path. as_path ( ) ) )
22
23
. expect ( "Targets should have been loaded" ) ;
23
24
24
25
assert_eq ! ( targets. len( ) , exp_num_targets) ;
@@ -58,6 +59,7 @@ mod all_targets {
58
59
"divergent-crate-dir-names" ,
59
60
& exp_targets,
60
61
3 ,
62
+ CargoFmtStrategy :: All ,
61
63
) ;
62
64
}
63
65
@@ -113,6 +115,7 @@ mod all_targets {
113
115
"workspaces/path-dep-above" ,
114
116
& exp_targets,
115
117
6 ,
118
+ CargoFmtStrategy :: All ,
116
119
) ;
117
120
}
118
121
You can’t perform that action at this time.
0 commit comments