cargo clippy fix

feat/vaults
Tomáš Mládek 2020-09-30 01:33:36 +02:00
parent f586b93af5
commit bb2a8e909f
1 changed files with 1 additions and 2 deletions

View File

@ -389,8 +389,7 @@ fn _process_directory_entry<P: AsRef<Path>>(
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 {