chore: Fix build errors on older Rust versions
This commit is contained in:
parent
9f7e64b9df
commit
d309f07010
2 changed files with 2 additions and 1 deletions
|
@ -677,7 +677,7 @@ impl<R: Read + Seek> ZipArchive<R> {
|
||||||
let mut unsupported_errors = Vec::new();
|
let mut unsupported_errors = Vec::new();
|
||||||
let mut ok_results = Vec::new();
|
let mut ok_results = Vec::new();
|
||||||
let cde_locations = spec::Zip32CentralDirectoryEnd::find_and_parse(reader)?;
|
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 =
|
let zip32_result =
|
||||||
Self::get_directory_info_zip32(&config, reader, &footer, cde_start_pos);
|
Self::get_directory_info_zip32(&config, reader, &footer, cde_start_pos);
|
||||||
Self::sort_result(
|
Self::sort_result(
|
||||||
|
|
|
@ -297,6 +297,7 @@ impl Zip32CentralDirectoryEnd {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
pub fn find_and_parse<T: Read + Seek>(
|
pub fn find_and_parse<T: Read + Seek>(
|
||||||
reader: &mut T,
|
reader: &mut T,
|
||||||
) -> ZipResult<Box<[(Rc<Zip32CentralDirectoryEnd>, u64)]>> {
|
) -> ZipResult<Box<[(Rc<Zip32CentralDirectoryEnd>, u64)]>> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue