Skip to content

Commit

Permalink
rustfmt recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Feb 5, 2022
1 parent f399291 commit 4eb943f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/find/matchers/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ impl SingleExecMatcher {
args: &[&str],
exec_in_parent_dir: bool,
) -> Result<Box<dyn Matcher>, Box<dyn Error>> {
Ok(Box::new(Self::new(
executable,
args,
exec_in_parent_dir,
)?))
Ok(Box::new(Self::new(executable, args, exec_in_parent_dir)?))
}
}

Expand Down
6 changes: 1 addition & 5 deletions src/find/matchers/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@ impl RegexMatcher {
pattern: &str,
ignore_case: bool,
) -> Result<Box<dyn Matcher>, Box<dyn Error>> {
Ok(Box::new(Self::new(
regex_type,
pattern,
ignore_case,
)?))
Ok(Box::new(Self::new(regex_type, pattern, ignore_case)?))
}
}

Expand Down
6 changes: 4 additions & 2 deletions tests/exec_unit_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ fn matching_fails_if_executable_fails() {
let abbbc = get_dir_entry_for("test_data/simple", "abbbc");
let matcher = SingleExecMatcher::new(
&path_to_testing_commandline(),
&[temp_dir_path.as_ref(),
&[
temp_dir_path.as_ref(),
"--exit_with_failure",
"abc",
"{}",
"xyz"],
"xyz",
],
true,
)
.expect("Failed to create matcher");
Expand Down

0 comments on commit 4eb943f

Please sign in to comment.