Skip to content

Commit

Permalink
Merge pull request #475 from cakebaker/find_fix_clippy_warnings
Browse files Browse the repository at this point in the history
find: fix new clippy warnings
  • Loading branch information
sylvestre authored Jan 20, 2025
2 parents 78b264d + 3fa7554 commit b7f93ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/find/matchers/logical_matchers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ impl Matcher for NotMatcher {
}

#[cfg(test)]

mod tests {
use super::*;
use crate::find::matchers::quit::QuitMatcher;
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 @@ -143,7 +143,7 @@ pub struct MatcherIO<'a> {
deps: &'a dyn Dependencies,
}

impl<'a> MatcherIO<'a> {
impl MatcherIO<'_> {
pub fn new(deps: &dyn Dependencies) -> MatcherIO<'_> {
MatcherIO {
should_skip_dir: false,
Expand Down
2 changes: 1 addition & 1 deletion src/find/matchers/prune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ impl Matcher for PruneMatcher {
true
}
}
#[cfg(test)]

#[cfg(test)]
mod tests {
use super::*;
use crate::find::matchers::tests::get_dir_entry_for;
Expand Down

0 comments on commit b7f93ea

Please sign in to comment.