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 f1fea49
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 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
2 changes: 1 addition & 1 deletion src/find/matchers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod size;
mod time;
mod type_matcher;

use ::regex::Regex;
use regex::Regex;
use std::path::Path;
use std::time::SystemTime;
use std::{error::Error, str::FromStr};
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 f1fea49

Please sign in to comment.