aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-02-16 00:26:07 +0100
committerJorge Aparicio <jorge@japaric.io>2019-02-16 00:26:07 +0100
commit7ce052be372ad5e3671e4f470ac552db075162fb (patch)
treea65375257cd5b8e7e52d974216fadaa7bdd40ba2 /tests
parent2b8e743f35a69b9b09a4de4c346eb9015c6b45ea (diff)
cargo fmt
Diffstat (limited to 'tests')
-rw-r--r--tests/compiletest.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/compiletest.rs b/tests/compiletest.rs
index acc8954..58702ee 100644
--- a/tests/compiletest.rs
+++ b/tests/compiletest.rs
@@ -38,18 +38,16 @@ fn cfail() {
let f = f.unwrap().path();
let name = f.file_stem().unwrap().to_str().unwrap();
- assert!(
- Command::new("rustc")
- .args(s.split_whitespace())
- .arg(f.display().to_string())
- .arg("-o")
- .arg(td.path().join(name).display().to_string())
- .arg("-C")
- .arg("linker=true")
- .status()
- .unwrap()
- .success()
- );
+ assert!(Command::new("rustc")
+ .args(s.split_whitespace())
+ .arg(f.display().to_string())
+ .arg("-o")
+ .arg(td.path().join(name).display().to_string())
+ .arg("-C")
+ .arg("linker=true")
+ .status()
+ .unwrap()
+ .success());
}
config.target_rustcflags = Some(s);