Skip to content

Commit 741d9a8

Browse files
committed
make tidy happy
1 parent ad1f56b commit 741d9a8

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

tests/run-make/issue-11908/rmake.rs

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,25 @@
1111

1212
//@ ignore-cross-compile
1313

14-
use run_make_support::{rustc, dynamic_lib, tmp_dir};
14+
use run_make_support::{dynamic_lib, rustc, tmp_dir};
1515
use std::fs;
1616

1717
fn main() {
1818
let mut tmp_dir_other = tmp_dir();
1919
tmp_dir_other.push("other");
2020

2121
fs::create_dir(tmp_dir_other.clone());
22-
rustc().input("foo.rs")
23-
.crate_type("dylib")
24-
.codegen_option("prefer-dynamic")
25-
.run();
22+
rustc().input("foo.rs").crate_type("dylib").codegen_option("prefer-dynamic").run();
2623
fs::rename(dynamic_lib("foo"), tmp_dir_other.clone());
27-
rustc().input("foo.rs")
28-
.crate_type("dylib")
29-
.codegen_option("prefer-dynamic")
30-
.run();
31-
rustc().input("bar.rs")
32-
.library_search_path(tmp_dir_other.clone())
33-
.run();
24+
rustc().input("foo.rs").crate_type("dylib").codegen_option("prefer-dynamic").run();
25+
rustc().input("bar.rs").library_search_path(tmp_dir_other.clone()).run();
3426
fs::remove_dir_all(tmp_dir());
3527

3628
fs::create_dir_all(tmp_dir_other.clone());
37-
rustc().input("foo.rs")
38-
.crate_type("rlib")
39-
.run();
29+
rustc().input("foo.rs").crate_type("rlib").run();
4030
let mut tmp_dir_libfoo = tmp_dir();
4131
tmp_dir_libfoo.push("libfoo.rlib");
4232
fs::rename(tmp_dir_libfoo, tmp_dir_other.clone());
43-
rustc().input("foo.rs")
44-
.crate_type("rlib")
45-
.run();
46-
rustc().input("bar.rs")
47-
.library_search_path(tmp_dir_other.clone())
48-
.run();
33+
rustc().input("foo.rs").crate_type("rlib").run();
34+
rustc().input("bar.rs").library_search_path(tmp_dir_other.clone()).run();
4935
}

0 commit comments

Comments
 (0)