From bb2a8e909fdabe6762c705eca35d83c3e8bfc232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 30 Sep 2020 01:33:36 +0200 Subject: [PATCH] cargo clippy fix --- src/filesystem.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/filesystem.rs b/src/filesystem.rs index 444133d..5afadff 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -389,8 +389,7 @@ fn _process_directory_entry>( let maybe_existing_file = existing_files .iter() .enumerate() - .find(|(_, file)| file.path == normalized_path_str) - .clone(); + .find(|(_, file)| file.path == normalized_path_str); if let Some((idx, existing_file)) = maybe_existing_file { if size == existing_file.size && mtime == existing_file.mtime {