File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,23 +26,23 @@ fn main() {
2626}
2727
2828"exec-test2" => {
29- Command :: new ( "/path/to/nowhere" ) . exec ( ) ;
29+ let _ = Command :: new ( "/path/to/nowhere" ) . exec ( ) ;
3030println ! ( "passed" ) ;
3131}
3232
3333"exec-test3" => {
34- Command :: new ( & me) . arg ( "bad\0 " ) . exec ( ) ;
34+ let _ = Command :: new ( & me) . arg ( "bad\0 " ) . exec ( ) ;
3535println ! ( "passed" ) ;
3636}
3737
3838"exec-test4" => {
39- Command :: new ( & me) . current_dir ( "/path/to/nowhere" ) . exec ( ) ;
39+ let _ = Command :: new ( & me) . current_dir ( "/path/to/nowhere" ) . exec ( ) ;
4040println ! ( "passed" ) ;
4141}
4242
4343"exec-test5" => {
4444 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 ( ) ;
4646assert_eq ! ( env:: var( "VARIABLE" ) . unwrap( ) , "ABC" ) ;
4747println ! ( "passed" ) ;
4848}
You can’t perform that action at this time.
0 commit comments