This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ fn main() {
10
10
rustc ( ) . input ( "foo.rs" ) . run ( ) ;
11
11
cc ( ) . input ( "bar.c" ) . input ( static_lib_name ( "foo" ) ) . out_exe ( "bar" ) . args ( & extra_c_flags ( ) ) . run ( ) ;
12
12
run ( "bar" ) ;
13
- fs:: remove_file ( static_lib_name ( "foo" ) ) ;
13
+ fs:: remove_file ( static_lib_name ( "foo" ) ) . unwrap ( ) ;
14
14
run ( "bar" ) ;
15
15
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ fn setup_test_env<F: FnOnce(&Path, &Path)>(callback: F) {
10
10
create_dir ( & out_dir) . expect ( "failed to create doctests folder" ) ;
11
11
rustc ( ) . input ( "t.rs" ) . crate_type ( "rlib" ) . run ( ) ;
12
12
callback ( & out_dir, Path :: new ( "libt.rlib" ) ) ;
13
- remove_dir_all ( out_dir) ;
13
+ remove_dir_all ( out_dir) . unwrap ( ) ;
14
14
}
15
15
16
16
fn check_generated_binaries ( ) {
@@ -58,6 +58,6 @@ fn main() {
58
58
. extern_ ( "t" , "libt.rlib" )
59
59
. run ( ) ;
60
60
61
- remove_dir_all ( run_dir_path) ;
61
+ remove_dir_all ( run_dir_path) . unwrap ( ) ;
62
62
} ) ;
63
63
}
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ fn main() {
31
31
. extern_ ( "t" , "libt.rlib" )
32
32
. run ( ) ;
33
33
34
- remove_dir_all ( run_dir) ;
35
- remove_dir_all ( run_tool) ;
34
+ remove_dir_all ( run_dir) . unwrap ( ) ;
35
+ remove_dir_all ( run_tool) . unwrap ( ) ;
36
36
}
You can’t perform that action at this time.
0 commit comments