Skip to content

Commit bb2be06

Browse files
committed
tests/run-make: use must_use results
1 parent e5af659 commit bb2be06

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/run-make/c-link-to-rust-staticlib/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ fn main() {
1010
rustc().input("foo.rs").run();
1111
cc().input("bar.c").input(static_lib_name("foo")).out_exe("bar").args(&extra_c_flags()).run();
1212
run("bar");
13-
fs::remove_file(static_lib_name("foo"));
13+
fs::remove_file(static_lib_name("foo")).unwrap();
1414
run("bar");
1515
}

tests/run-make/doctests-keep-binaries/rmake.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn setup_test_env<F: FnOnce(&Path, &Path)>(callback: F) {
1010
create_dir(&out_dir).expect("failed to create doctests folder");
1111
rustc().input("t.rs").crate_type("rlib").run();
1212
callback(&out_dir, Path::new("libt.rlib"));
13-
remove_dir_all(out_dir);
13+
remove_dir_all(out_dir).unwrap();
1414
}
1515

1616
fn check_generated_binaries() {
@@ -58,6 +58,6 @@ fn main() {
5858
.extern_("t", "libt.rlib")
5959
.run();
6060

61-
remove_dir_all(run_dir_path);
61+
remove_dir_all(run_dir_path).unwrap();
6262
});
6363
}

tests/run-make/doctests-runtool/rmake.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ fn main() {
3131
.extern_("t", "libt.rlib")
3232
.run();
3333

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();
3636
}

0 commit comments

Comments
 (0)