Skip to content

Commit 7fe2f73

Browse files
committed
formatting
1 parent a917308 commit 7fe2f73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tools/tidy/src/x_version.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ use std::io::ErrorKind;
33
use std::process::{Command, Stdio};
44

55
pub fn check(bad: &mut bool) {
6-
let result = Command::new("x")
7-
.arg("--version")
8-
.stdout(Stdio::piped())
9-
.spawn();
6+
let result = Command::new("x").arg("--version").stdout(Stdio::piped()).spawn();
107
let child = match result {
118
Ok(child) => child,
129
Err(e) => match e.kind() {
13-
ErrorKind::NotFound => return (),
10+
ErrorKind::NotFound => return,
1411
_ => return tidy_error!(bad, "{}", e),
1512
},
1613
};
@@ -28,7 +25,10 @@ pub fn check(bad: &mut bool) {
2825
build: BuildMetadata::EMPTY,
2926
};
3027
if version < expected {
31-
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`");
28+
return tidy_error!(
29+
bad,
30+
"Current version of x is {version} Consider updating to the newer version of x by running `cargo install --path src/tools/x`"
31+
);
3232
}
3333
} else {
3434
return tidy_error!(bad, "{}", output.status);

0 commit comments

Comments
 (0)