mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 18:50:02 +00:00
Revert "Bump async_zip from 0.0.9 to 0.0.10" (#714)
This commit is contained in:
parent
c2b1c243ea
commit
c1332c0d2d
4 changed files with 153 additions and 30 deletions
|
@ -48,10 +48,8 @@ where
|
|||
let mut zip = ZipFileReader::new(reader);
|
||||
let mut buf = BytesMut::with_capacity(4 * 4096);
|
||||
|
||||
while let Some(mut zip_reader) = zip.next_entry().await.map_err(ZipError::from_inner)? {
|
||||
extract_zip_entry(&mut zip_reader, path, &mut buf).await?;
|
||||
|
||||
zip = zip_reader.done().await.map_err(ZipError::from_inner)?;
|
||||
while let Some(entry) = zip.entry_reader().await.map_err(ZipError::from_inner)? {
|
||||
extract_zip_entry(entry, path, &mut buf).await?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue