File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,23 +26,23 @@ fn main() {
26
26
}
27
27
28
28
"exec-test2" => {
29
- Command :: new ( "/path/to/nowhere" ) . exec ( ) ;
29
+ let _ = Command :: new ( "/path/to/nowhere" ) . exec ( ) ;
30
30
println ! ( "passed" ) ;
31
31
}
32
32
33
33
"exec-test3" => {
34
- Command :: new ( & me) . arg ( "bad\0 " ) . exec ( ) ;
34
+ let _ = Command :: new ( & me) . arg ( "bad\0 " ) . exec ( ) ;
35
35
println ! ( "passed" ) ;
36
36
}
37
37
38
38
"exec-test4" => {
39
- Command :: new ( & me) . current_dir ( "/path/to/nowhere" ) . exec ( ) ;
39
+ let _ = Command :: new ( & me) . current_dir ( "/path/to/nowhere" ) . exec ( ) ;
40
40
println ! ( "passed" ) ;
41
41
}
42
42
43
43
"exec-test5" => {
44
44
env:: set_var ( "VARIABLE" , "ABC" ) ;
45
- Command :: new ( "definitely-not-a-real-binary" ) . env ( "VARIABLE" , "XYZ" ) . exec ( ) ;
45
+ let _ = Command :: new ( "definitely-not-a-real-binary" ) . env ( "VARIABLE" , "XYZ" ) . exec ( ) ;
46
46
assert_eq ! ( env:: var( "VARIABLE" ) . unwrap( ) , "ABC" ) ;
47
47
println ! ( "passed" ) ;
48
48
}
You can’t perform that action at this time.
0 commit comments