Skip to content

Commit e94354e

Browse files
committed
fix formatting
1 parent 5e67ce6 commit e94354e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/tools/tidy/src/x_version.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ pub fn check(bad: &mut bool) {
66
let result = Command::new("x").arg("--wrapper-version").stdout(Stdio::piped()).spawn();
77
// This runs the command inside a temporarily directory.
88
// This allows us to compare output of result to see if `--wrapper-version` is not a recognized argument to x.
9-
let temp_result = Command::new("x").arg("--wrapper-version").current_dir(std::env::temp_dir()).stdout(Stdio::piped()).spawn();
9+
let temp_result = Command::new("x")
10+
.arg("--wrapper-version")
11+
.current_dir(std::env::temp_dir())
12+
.stdout(Stdio::piped())
13+
.spawn();
1014

1115
let (child, temp_child) = match (result, temp_result) {
1216
(Ok(child), Ok(temp_child)) => (child, temp_child),
@@ -23,9 +27,9 @@ pub fn check(bad: &mut bool) {
2327

2428
if output != temp_output {
2529
return tidy_error!(
26-
bad,
27-
"Current version of x does not support the `--wrapper-version` argument\nConsider updating to the newer version of x by running `cargo install --path src/tools/x`"
28-
)
30+
bad,
31+
"Current version of x does not support the `--wrapper-version` argument\nConsider updating to the newer version of x by running `cargo install --path src/tools/x`"
32+
);
2933
}
3034

3135
if output.status.success() {

0 commit comments

Comments
 (0)