diff --git a/src/read.rs b/src/read.rs index 6296d4fa..c769b49d 100644 --- a/src/read.rs +++ b/src/read.rs @@ -677,7 +677,7 @@ impl ZipArchive { let mut unsupported_errors = Vec::new(); let mut ok_results = Vec::new(); let cde_locations = spec::Zip32CentralDirectoryEnd::find_and_parse(reader)?; - IntoIterator::into_iter(cde_locations).for_each(|(footer, cde_start_pos)| { + cde_locations.into_vec().into_iter().for_each(|(footer, cde_start_pos)| { let zip32_result = Self::get_directory_info_zip32(&config, reader, &footer, cde_start_pos); Self::sort_result( diff --git a/src/spec.rs b/src/spec.rs index 84aa06bf..f923d835 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -297,6 +297,7 @@ impl Zip32CentralDirectoryEnd { }) } + #[allow(clippy::type_complexity)] pub fn find_and_parse( reader: &mut T, ) -> ZipResult, u64)]>> {