Skip to content

Commit 1e7b59c

Browse files
committed
Replace zip with zip_next
1 parent b32d7ea commit 1e7b59c

File tree

3 files changed

+102
-62
lines changed

3 files changed

+102
-62
lines changed

Diff for: Cargo.lock

+99-59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ hex = "0.4"
1919
is_executable = "0.1"
2020
siphasher = "0.3"
2121
tar = "0.4"
22-
zip = "0.6"
22+
zip_next = "1.0"
2323

2424
[dev-dependencies]
2525
tempfile = "3.1"

Diff for: src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl Cache {
277277
let mut binaries: HashSet<_> = binaries.iter().copied().collect();
278278

279279
let data = io::Cursor::new(zip);
280-
let mut zip = zip::ZipArchive::new(data)?;
280+
let mut zip = zip_next::ZipArchive::new(data)?;
281281

282282
for i in 0..zip.len() {
283283
let mut entry = zip.by_index(i).unwrap();
@@ -286,7 +286,7 @@ impl Cache {
286286
None => continue,
287287
};
288288

289-
let dest = match self.extract_binary(entry_path, dst, &mut binaries) {
289+
let dest = match self.extract_binary(&entry_path, dst, &mut binaries) {
290290
Some(dest) => dest,
291291
_ => continue,
292292
};

0 commit comments

Comments
 (0)