Skip to content

Commit 791ec8f

Browse files
committed
fmt
1 parent 88fc42b commit 791ec8f

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

tests/compiletest.rs

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,9 @@ fn run_tests(mode: &str, path: &str, target: &str) {
5353
fn compile_fail(path: &str, target: &str) {
5454
eprintln!(
5555
"{}",
56-
format!(
57-
"## Running compile-fail tests in {} against miri for target {}",
58-
path, target
59-
)
60-
.green()
61-
.bold()
56+
format!("## Running compile-fail tests in {} against miri for target {}", path, target)
57+
.green()
58+
.bold()
6259
);
6360

6461
run_tests("compile-fail", path, target);
@@ -67,21 +64,18 @@ fn compile_fail(path: &str, target: &str) {
6764
fn miri_pass(path: &str, target: &str) {
6865
eprintln!(
6966
"{}",
70-
format!(
71-
"## Running run-pass tests in {} against miri for target {}",
72-
path, target
73-
)
74-
.green()
75-
.bold()
67+
format!("## Running run-pass tests in {} against miri for target {}", path, target)
68+
.green()
69+
.bold()
7670
);
7771

7872
run_tests("ui", path, target);
7973
}
8074

8175
fn get_host() -> String {
82-
let version_meta = rustc_version::VersionMeta::for_command(
83-
std::process::Command::new(miri_path())
84-
).expect("failed to parse rustc version info");
76+
let version_meta =
77+
rustc_version::VersionMeta::for_command(std::process::Command::new(miri_path()))
78+
.expect("failed to parse rustc version info");
8579
version_meta.host
8680
}
8781

0 commit comments

Comments
 (0)