From 726fede7ccb284de707f60893eee9d5c57600766 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Tue, 19 May 2020 15:37:38 +0200 Subject: [PATCH] Code formatting --- tests/testenv/mod.rs | 7 ++++++- tests/tests.rs | 5 +---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/testenv/mod.rs b/tests/testenv/mod.rs index 253d277..117bd64 100644 --- a/tests/testenv/mod.rs +++ b/tests/testenv/mod.rs @@ -256,7 +256,12 @@ impl TestEnv { /// Assert that calling *fd* in the specified path under the root working directory, /// and with the specified arguments produces an error with the expected message. - fn assert_error_subdirectory>(&self, path: P, args: &[&str], expected: &str) -> process::ExitStatus { + fn assert_error_subdirectory>( + &self, + path: P, + args: &[&str], + expected: &str, + ) -> process::ExitStatus { // Setup *fd* command. let mut cmd = process::Command::new(&self.fd_exe); cmd.current_dir(self.temp_dir.path().join(path)); diff --git a/tests/tests.rs b/tests/tests.rs index 6ce2a9a..79bfce6 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -123,10 +123,7 @@ fn test_multi_file_with_missing() { let dirs = &["real"]; let files = &["real/a.foo", "real/b.foo"]; let te = TestEnv::new(dirs, files); - te.assert_output( - &["a.foo", "real", "fake"], - "real/a.foo", - ); + te.assert_output(&["a.foo", "real", "fake"], "real/a.foo"); te.assert_error( &["a.foo", "real", "fake"],