Skip to content

Commit 8af42f6

Browse files
committed
Remove useless Clone bounds
1 parent 436afdf commit 8af42f6

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
@@ -41,15 +41,15 @@ pub fn filter_not_rust(path: &Path) -> bool {
4141

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

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

0 commit comments

Comments
 (0)