Skip to content

Commit 162c0ff

Browse files
committed
use postfix negation instead of prefix
1 parent 874437d commit 162c0ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/bin/cargo-miri.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::fs::{self, File};
44
use std::io::{self, Write, BufRead};
55
use std::path::{PathBuf, Path};
66
use std::process::Command;
7+
use std::ops::Not;
78

89
const CARGO_MIRI_HELP: &str = r#"Interprets bin crates and tests in Miri
910
@@ -250,9 +251,9 @@ fn setup(ask_user: bool) {
250251
}
251252

252253
// FIXME: Install from crates.io again once a new xargo got released.
253-
if !cargo().args(&["install", "xargo", "-f", "--git", "https://github.com/japaric/xargo"]).status()
254+
if cargo().args(&["install", "xargo", "-f", "--git", "https://github.com/japaric/xargo"]).status()
254255
.expect("failed to install xargo")
255-
.success()
256+
.success().not()
256257
{
257258
show_error(format!("Failed to install xargo"));
258259
}
@@ -326,9 +327,9 @@ path = "lib.rs"
326327
command.arg("--target").arg(&target);
327328
}
328329
// Finally run it!
329-
if !command.status()
330+
if command.status()
330331
.expect("failed to run xargo")
331-
.success()
332+
.success().not()
332333
{
333334
show_error(format!("Failed to run xargo"));
334335
}

0 commit comments

Comments
 (0)