From d309f0701021787be6f4c1ba0ee0d6aee0b120a7 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Tue, 18 Jun 2024 20:09:50 -0700 Subject: [PATCH] chore: Fix build errors on older Rust versions --- src/read.rs | 2 +- src/spec.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)]>> {