Skip to content

Commit

Permalink
Remove useless Clone bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Mar 21, 2023
1 parent 86a0334 commit 285fec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/tidy/src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ pub fn filter_not_rust(path: &Path) -> bool {

pub fn walk(
path: &Path,
skip: impl Clone + Send + Sync + 'static + Fn(&Path, bool) -> bool,
skip: impl Send + Sync + 'static + Fn(&Path, bool) -> bool,
f: &mut dyn FnMut(&DirEntry, &str),
) {
walk_many(&[path], skip, f);
}

pub fn walk_many(
paths: &[&Path],
skip: impl Clone + Send + Sync + 'static + Fn(&Path, bool) -> bool,
skip: impl Send + Sync + 'static + Fn(&Path, bool) -> bool,
f: &mut dyn FnMut(&DirEntry, &str),
) {
let mut contents = Vec::new();
Expand Down

0 comments on commit 285fec8

Please sign in to comment.