Skip to content
Myr

Improve consistency of linting

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by DJRHails · committed by David Peter · parent dc120c5 · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−5 removed

  • tests:+0 added−3 removed
  • other:+5 added−2 removed

2 files+5 added−5 removed

modified:src/main.rs+5 added-2 removed
89 unmodified lines
90 if filesystem::is_dir(&path_buffer) {91 dir_vec.push(path_buffer);92 }93 else {94 print_error(format!("Search path '{}' is not a directory.", path_buffer.to_string_lossy()));94 print_error(format!(95 "Search path '{}' is not a directory.",96 path_buffer.to_string_lossy()97 ));98 }99 }100 }101102 // Check if we have no valid search paths.103 if dir_vec.is_empty() {101 return Err(anyhow!("No valid search paths given."));104 return Err(anyhow!("No valid search paths given."));105 }106107 if matches.is_present("absolute-path") {108 dir_vec = dir_vec
319 unmodified lines
modified:tests/testenv/mod.rs-3 removed
263 unmodified lines
264265 // Run *fd*.266 let output = cmd.output().expect("fd output");267268269270 // Compare actual output to expected output.268 // Normalize both expected and actual output.269 let expected_error = normalize_output(expected, true, self.normalize_line);270 let actual_err = normalize_output(271 &String::from_utf8_lossy(&output.stderr),
12 unmodified lines