Skip to content

Commit d79aeaf

Browse files
Remove unused import in run-make/prefer-dylib/rmake.rs
1 parent f2cce98 commit d79aeaf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/run-make/prefer-dylib/rmake.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use run_make_support::{cwd, dynamic_lib_name, read_dir, run, run_fail, rustc};
44
use std::fs::remove_file;
5-
use std::process::Command;
65

76
fn main() {
87
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run();

tests/run-make/prefer-rlib/rmake.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33

44
//@ ignore-cross-compile
55

6-
use run_make_support::{dynamic_lib_name, path, run, rust_lib_name, rustc};
7-
use std::fs::remove_file;
6+
use run_make_support::{dynamic_lib_name, fs_wrapper, path, run, rust_lib_name, rustc};
87

98
fn main() {
109
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").run();
1110
assert!(path(rust_lib_name("bar")).exists());
1211
rustc().input("foo.rs").run();
13-
remove_file(rust_lib_name("bar")).unwrap();
14-
remove_file(dynamic_lib_name("bar")).unwrap();
12+
fs_wrapper::remove_file(rust_lib_name("bar"));
13+
fs_wrapper::remove_file(dynamic_lib_name("bar"));
1514
run("foo");
1615
}

0 commit comments

Comments
 (0)