From cdfd36a1ccf9dd38422911f45798d52c8dd400fa Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Mon, 8 Apr 2024 11:02:11 -0700 Subject: [PATCH] Fix another Clippy warning --- src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read.rs b/src/read.rs index 6f54ad85..9ee33b41 100644 --- a/src/read.rs +++ b/src/read.rs @@ -486,7 +486,7 @@ impl ZipArchive { reader.seek(io::SeekFrom::Start(dir_info.directory_start))?; for _ in 0..dir_info.number_of_files { let file = central_header_to_zip_file(reader, dir_info.archive_offset)?; - names_map.insert(file.file_name.clone().into(), files.len()); + names_map.insert(file.file_name.clone(), files.len()); files.push(file); } let dir_end = reader.seek(io::SeekFrom::Start(dir_info.directory_start))?;