diff options
| author | DebugSteven <debugsteven@gmail.com> | 2022-12-05 16:42:08 -0700 |
|---|---|---|
| committer | DebugSteven <debugsteven@gmail.com> | 2022-12-31 11:38:44 -0700 |
| commit | 7fe2f73ecdde41ec3bc0bd9bfdee5cd064536d53 (patch) | |
| tree | 85feff16becd816a3955aaa20d2bfc104e5f2905 | |
| parent | a917308d9180b3203c1e65a394c28c7e7d92b9bb (diff) | |
| download | rust-7fe2f73ecdde41ec3bc0bd9bfdee5cd064536d53.tar.gz rust-7fe2f73ecdde41ec3bc0bd9bfdee5cd064536d53.zip | |
formatting
| -rw-r--r-- | src/tools/tidy/src/x_version.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/tidy/src/x_version.rs b/src/tools/tidy/src/x_version.rs index bbb2662bdcf..c54414836ed 100644 --- a/src/tools/tidy/src/x_version.rs +++ b/src/tools/tidy/src/x_version.rs @@ -3,14 +3,11 @@ use std::io::ErrorKind; use std::process::{Command, Stdio}; pub fn check(bad: &mut bool) { - let result = Command::new("x") - .arg("--version") - .stdout(Stdio::piped()) - .spawn(); + let result = Command::new("x").arg("--version").stdout(Stdio::piped()).spawn(); let child = match result { Ok(child) => child, Err(e) => match e.kind() { - ErrorKind::NotFound => return (), + ErrorKind::NotFound => return, _ => return tidy_error!(bad, "{}", e), }, }; @@ -28,7 +25,10 @@ pub fn check(bad: &mut bool) { build: BuildMetadata::EMPTY, }; if version < expected { - return tidy_error!(bad, "Current version of x is {version} Consider updating to the newer version of x by running `cargo install --path src/tools/x`"); + return tidy_error!( + bad, + "Current version of x is {version} Consider updating to the newer version of x by running `cargo install --path src/tools/x`" + ); } } else { return tidy_error!(bad, "{}", output.status); |
