diff --git a/Cargo.toml b/Cargo.toml index 9b4189d..3914996 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ lz4_flex = { version = "0.11.3", optional = true } min-max-heap = "1.3.0" miniz_oxide = { version = "0.7.3", optional = true } path-absolutize = "3.1.1" -quick_cache = "0.5.1" +quick_cache = "0.6.0" serde = { version = "1.0.200", optional = true, features = ["derive", "rc"] } tempfile = "3.10.1" diff --git a/src/blob_cache.rs b/src/blob_cache.rs index 045c9cb..fdd0a98 100644 --- a/src/blob_cache.rs +++ b/src/blob_cache.rs @@ -22,11 +22,9 @@ impl From<(ValueLogId, ValueHandle)> for CacheKey { struct BlobWeighter; impl Weighter for BlobWeighter { - // NOTE: quick_cache only supports u32 as weight, but that's fine - // 4 GB blobs are too big anyway #[allow(clippy::cast_possible_truncation)] - fn weight(&self, _: &CacheKey, blob: &Item) -> u32 { - blob.len() as u32 + fn weight(&self, _: &CacheKey, blob: &Item) -> u64 { + blob.len() as u64 } }