@@ -42,7 +42,11 @@ fn push_optional_args(cmd_args: &mut Vec<String>, args: &TestCmdArgs) {
42
42
cmd_args. extend ( vec ! [ "--jobs" . to_string( ) , jobs. to_string( ) ] ) ;
43
43
} ;
44
44
if let Some ( threads) = & args. threads {
45
- cmd_args. extend ( vec ! [ "--" . to_string( ) , "--test-threads" . to_string( ) , threads. to_string( ) ] ) ;
45
+ cmd_args. extend ( vec ! [
46
+ "--" . to_string( ) ,
47
+ "--test-threads" . to_string( ) ,
48
+ threads. to_string( ) ,
49
+ ] ) ;
46
50
} ;
47
51
}
48
52
@@ -58,7 +62,10 @@ pub fn run_unit(target: &Target, args: &TestCmdArgs) -> Result<()> {
58
62
"--examples" ,
59
63
"--color" ,
60
64
"always" ,
61
- ] . into_iter ( ) . map ( |s| s. to_string ( ) ) . collect :: < Vec < String > > ( ) ;
65
+ ]
66
+ . into_iter ( )
67
+ . map ( |s| s. to_string ( ) )
68
+ . collect :: < Vec < String > > ( ) ;
62
69
push_optional_args ( & mut cmd_args, args) ;
63
70
run_process_for_workspace (
64
71
"cargo" ,
@@ -103,7 +110,10 @@ fn run_unit_test(member: &WorkspaceMember, args: &TestCmdArgs) -> Result<(), any
103
110
"--color=always" ,
104
111
"--" ,
105
112
"--color=always" ,
106
- ] . into_iter ( ) . map ( |s| s. to_string ( ) ) . collect :: < Vec < String > > ( ) ;
113
+ ]
114
+ . into_iter ( )
115
+ . map ( |s| s. to_string ( ) )
116
+ . collect :: < Vec < String > > ( ) ;
107
117
push_optional_args ( & mut cmd_args, args) ;
108
118
run_process_for_package (
109
119
"cargo" ,
@@ -133,7 +143,10 @@ pub fn run_integration(target: &Target, args: &TestCmdArgs) -> anyhow::Result<()
133
143
"test_*" ,
134
144
"--color" ,
135
145
"always" ,
136
- ] . into_iter ( ) . map ( |s| s. to_string ( ) ) . collect :: < Vec < String > > ( ) ;
146
+ ]
147
+ . into_iter ( )
148
+ . map ( |s| s. to_string ( ) )
149
+ . collect :: < Vec < String > > ( ) ;
137
150
push_optional_args ( & mut cmd_args, args) ;
138
151
run_process_for_workspace (
139
152
"cargo" ,
@@ -176,7 +189,10 @@ fn run_integration_test(member: &WorkspaceMember, args: &TestCmdArgs) -> Result<
176
189
& member. name,
177
190
"--color" ,
178
191
"always" ,
179
- ] . into_iter ( ) . map ( |s| s. to_string ( ) ) . collect :: < Vec < String > > ( ) ;
192
+ ]
193
+ . into_iter ( )
194
+ . map ( |s| s. to_string ( ) )
195
+ . collect :: < Vec < String > > ( ) ;
180
196
push_optional_args ( & mut cmd_args, args) ;
181
197
run_process_for_package (
182
198
"cargo" ,
0 commit comments