about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJane Lusby <jlusby@yaah.dev>2020-04-15 09:22:45 -0700
committerJane Lusby <jlusby@yaah.dev>2020-04-15 09:22:45 -0700
commit625011081b9c0e53878ba0c36c225998f564f55d (patch)
treefbfaa158d87bfd5f4355177ce2667e34f0dbd107
parenta3ce88b4d71ebee0a4aa991420906ec5c5edf0ad (diff)
downloadrust-625011081b9c0e53878ba0c36c225998f564f55d.tar.gz
rust-625011081b9c0e53878ba0c36c225998f564f55d.zip
revert the damn fmt changes
-rw-r--r--src/driver.rs2
-rw-r--r--tests/compile-test.rs4
-rw-r--r--tests/missing-test-files.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/driver.rs b/src/driver.rs
index e62ddf2c5f5..2c699998ea9 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -43,7 +43,7 @@ fn arg_value<'a, T: Deref<Target = str>>(
 
         match arg.next().or_else(|| args.next()) {
             Some(v) if pred(v) => return Some(v),
-            _ => {}
+            _ => {},
         }
     }
     None
diff --git a/tests/compile-test.rs b/tests/compile-test.rs
index 1f737ee90ae..de2cf6d7873 100644
--- a/tests/compile-test.rs
+++ b/tests/compile-test.rs
@@ -145,11 +145,11 @@ fn run_ui_toml(config: &mut compiletest::Config) {
 
     let res = run_ui_toml_tests(&config, tests);
     match res {
-        Ok(true) => {}
+        Ok(true) => {},
         Ok(false) => panic!("Some tests failed"),
         Err(e) => {
             println!("I/O failure during tests: {:?}", e);
-        }
+        },
     }
 }
 
diff --git a/tests/missing-test-files.rs b/tests/missing-test-files.rs
index a26f43d0eff..d87bb4be3c3 100644
--- a/tests/missing-test-files.rs
+++ b/tests/missing-test-files.rs
@@ -46,7 +46,7 @@ fn explore_directory(dir: &Path) -> Vec<String> {
                         if file_stem != current_file {
                             missing_files.push(path.to_str().unwrap().to_string());
                         }
-                    }
+                    },
                     _ => continue,
                 };
             }