From 791ec8fef740ecbf3ad63ae1c5a3001e1ec45598 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 11 May 2020 10:54:21 +0200 Subject: [PATCH] fmt --- tests/compiletest.rs | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 17125de9f55f..2be0661b93ee 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -53,12 +53,9 @@ fn run_tests(mode: &str, path: &str, target: &str) { fn compile_fail(path: &str, target: &str) { eprintln!( "{}", - format!( - "## Running compile-fail tests in {} against miri for target {}", - path, target - ) - .green() - .bold() + format!("## Running compile-fail tests in {} against miri for target {}", path, target) + .green() + .bold() ); run_tests("compile-fail", path, target); @@ -67,21 +64,18 @@ fn compile_fail(path: &str, target: &str) { fn miri_pass(path: &str, target: &str) { eprintln!( "{}", - format!( - "## Running run-pass tests in {} against miri for target {}", - path, target - ) - .green() - .bold() + format!("## Running run-pass tests in {} against miri for target {}", path, target) + .green() + .bold() ); run_tests("ui", path, target); } fn get_host() -> String { - let version_meta = rustc_version::VersionMeta::for_command( - std::process::Command::new(miri_path()) - ).expect("failed to parse rustc version info"); + let version_meta = + rustc_version::VersionMeta::for_command(std::process::Command::new(miri_path())) + .expect("failed to parse rustc version info"); version_meta.host }