Remove useless Clone bounds

This commit is contained in:
Maybe Waffle 2023-03-21 12:01:47 +00:00
parent 436afdf1fe
commit 8af42f695d

View file

@ -41,7 +41,7 @@ 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);
@ -49,7 +49,7 @@ pub fn walk(
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();