about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDebugSteven <debugsteven@gmail.com>2023-01-01 13:41:47 -0700
committerDebugSteven <debugsteven@gmail.com>2023-01-01 13:41:47 -0700
commite94354e3632e76c6ccff91f40fa054f68e2e87f4 (patch)
treec26ba8a3ed960920d8f3b564cd9f06f49889f712 /src
parent5e67ce6803c5d1d67ccfce653a80257aba41f43a (diff)
downloadrust-e94354e3632e76c6ccff91f40fa054f68e2e87f4.tar.gz
rust-e94354e3632e76c6ccff91f40fa054f68e2e87f4.zip
fix formatting
Diffstat (limited to 'src')
-rw-r--r--src/tools/tidy/src/x_version.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tools/tidy/src/x_version.rs b/src/tools/tidy/src/x_version.rs
index 1505775c6cc..9cb762b9419 100644
--- a/src/tools/tidy/src/x_version.rs
+++ b/src/tools/tidy/src/x_version.rs
@@ -6,7 +6,11 @@ pub fn check(bad: &mut bool) {
     let result = Command::new("x").arg("--wrapper-version").stdout(Stdio::piped()).spawn();
     // This runs the command inside a temporarily directory.
     // This allows us to compare output of result to see if `--wrapper-version` is not a recognized argument to x.
-    let temp_result = Command::new("x").arg("--wrapper-version").current_dir(std::env::temp_dir()).stdout(Stdio::piped()).spawn();
+    let temp_result = Command::new("x")
+        .arg("--wrapper-version")
+        .current_dir(std::env::temp_dir())
+        .stdout(Stdio::piped())
+        .spawn();
 
     let (child, temp_child) = match (result, temp_result) {
         (Ok(child), Ok(temp_child)) => (child, temp_child),
@@ -23,9 +27,9 @@ pub fn check(bad: &mut bool) {
 
     if output != temp_output {
         return tidy_error!(
-                bad,
-                "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`"
-            )
+            bad,
+            "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`"
+        );
     }
 
     if output.status.success() {