Skip to content

Commit 285fec8

Browse files
committed
Remove useless Clone bounds
1 parent 86a0334 commit 285fec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/tidy/src/walk.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ pub fn filter_not_rust(path: &Path) -> bool {
4040

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

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

0 commit comments

Comments
 (0)