Improve consistency of linting

This commit is contained in:
DJRHails 2020-05-19 13:31:56 +01:00 committed by David Peter
parent dc120c547d
commit da9af8c1eb
2 changed files with 5 additions and 5 deletions

View File

@ -91,14 +91,17 @@ fn run() -> Result<ExitCode> {
dir_vec.push(path_buffer); dir_vec.push(path_buffer);
} }
else { else {
print_error(format!("Search path '{}' is not a directory.", path_buffer.to_string_lossy())); print_error(format!(
"Search path '{}' is not a directory.",
path_buffer.to_string_lossy()
));
} }
} }
} }
// Check if we have no valid search paths. // Check if we have no valid search paths.
if dir_vec.is_empty() { if dir_vec.is_empty() {
return Err(anyhow!("No valid search paths given.")); return Err(anyhow!("No valid search paths given."));
} }
if matches.is_present("absolute-path") { if matches.is_present("absolute-path") {

View File

@ -265,9 +265,6 @@ impl TestEnv {
// Run *fd*. // Run *fd*.
let output = cmd.output().expect("fd output"); let output = cmd.output().expect("fd output");
// Compare actual output to expected output.
// Normalize both expected and actual output. // Normalize both expected and actual output.
let expected_error = normalize_output(expected, true, self.normalize_line); let expected_error = normalize_output(expected, true, self.normalize_line);
let actual_err = normalize_output( let actual_err = normalize_output(