Code formatting

This commit is contained in:
sharkdp 2020-05-19 15:37:38 +02:00 committed by David Peter
parent 9d3cb69935
commit 726fede7cc
2 changed files with 7 additions and 5 deletions

View File

@ -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<P: AsRef<Path>>(&self, path: P, args: &[&str], expected: &str) -> process::ExitStatus {
fn assert_error_subdirectory<P: AsRef<Path>>(
&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));

View File

@ -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"],