File tree 1 file changed +10
-15
lines changed
1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,6 @@ fn run_unit_tests(
84
84
script_meta,
85
85
} in compilation. tests . iter ( )
86
86
{
87
- let test = unit. target . name ( ) . to_string ( ) ;
88
-
89
87
let test_path = unit. target . src_path ( ) . path ( ) . unwrap ( ) ;
90
88
let exe_display = if let TargetKind :: Test = unit. target . kind ( ) {
91
89
format ! (
@@ -117,20 +115,17 @@ fn run_unit_tests(
117
115
118
116
let result = cmd. exec ( ) ;
119
117
120
- match result {
121
- Err ( e) => {
122
- let e = e. downcast :: < ProcessError > ( ) ?;
123
- errors. push ( (
124
- unit. target . kind ( ) . clone ( ) ,
125
- test. clone ( ) ,
126
- unit. pkg . name ( ) . to_string ( ) ,
127
- e,
128
- ) ) ;
129
- if !options. no_fail_fast {
130
- break ;
131
- }
118
+ if let Err ( e) = result {
119
+ let e = e. downcast :: < ProcessError > ( ) ?;
120
+ errors. push ( (
121
+ unit. target . kind ( ) . clone ( ) ,
122
+ unit. target . name ( ) . to_string ( ) ,
123
+ unit. pkg . name ( ) . to_string ( ) ,
124
+ e,
125
+ ) ) ;
126
+ if !options. no_fail_fast {
127
+ break ;
132
128
}
133
- Ok ( ( ) ) => { }
134
129
}
135
130
}
136
131
You can’t perform that action at this time.
0 commit comments