mirror of
https://github.com/sharkdp/fd
synced 2024-09-04 15:53:20 +00:00
Improve consistency of linting
This commit is contained in:
parent
dc120c547d
commit
da9af8c1eb
|
@ -91,14 +91,17 @@ fn run() -> Result<ExitCode> {
|
|||
dir_vec.push(path_buffer);
|
||||
}
|
||||
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.
|
||||
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") {
|
||||
|
|
|
@ -265,9 +265,6 @@ impl TestEnv {
|
|||
// Run *fd*.
|
||||
let output = cmd.output().expect("fd output");
|
||||
|
||||
|
||||
|
||||
// Compare actual output to expected output.
|
||||
// Normalize both expected and actual output.
|
||||
let expected_error = normalize_output(expected, true, self.normalize_line);
|
||||
let actual_err = normalize_output(
|
||||
|
|
Loading…
Reference in a new issue