Skip to content

Commit

Permalink
Bump zip from 0.6.6 to 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Jul 17, 2024
1 parent 901923b commit e544cad
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 20 deletions.
66 changes: 49 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ uuid = { version = "1.9", features = ["v4"] }
walkdir = "2"
# by default which pulls in an outdated failure version
which = { version = "6", default-features = false }
zip = { version = "0.6", default-features = false }
zip = { version = "2", default-features = false }
zstd = "0.13"

# dist-server only
Expand Down
4 changes: 2 additions & 2 deletions src/cache/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl CacheWrite {
{
// We're going to declare the compression method as "stored",
// but we're actually going to store zstd-compressed blobs.
let opts = FileOptions::default().compression_method(CompressionMethod::Stored);
let opts = FileOptions::<()>::default().compression_method(CompressionMethod::Stored);
let opts = if let Some(mode) = mode {
opts.unix_permissions(mode)
} else {
Expand Down Expand Up @@ -312,7 +312,7 @@ impl CacheWrite {

/// Finish writing data to the cache entry writer, and return the data.
pub fn finish(self) -> Result<Vec<u8>> {
let CacheWrite { mut zip } = self;
let CacheWrite { zip } = self;
let cur = zip.finish().context("Failed to finish cache entry zip")?;
Ok(cur.into_inner())
}
Expand Down

0 comments on commit e544cad

Please sign in to comment.