From 625011081b9c0e53878ba0c36c225998f564f55d Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Wed, 15 Apr 2020 09:22:45 -0700 Subject: [PATCH] revert the damn fmt changes --- src/driver.rs | 2 +- tests/compile-test.rs | 4 ++-- tests/missing-test-files.rs | 2 +- 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>( 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 { if file_stem != current_file { missing_files.push(path.to_str().unwrap().to_string()); } - } + }, _ => continue, }; }