Skip to content

Commit a4560f5

Browse files
authored
Merge pull request #6 from fjall-rs/renovate/quick_cache-0.x
fix(deps): update rust crate quick_cache to 0.6.0
2 parents 545dce8 + 9234767 commit a4560f5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ lz4_flex = { version = "0.11.3", optional = true }
3030
min-max-heap = "1.3.0"
3131
miniz_oxide = { version = "0.7.3", optional = true }
3232
path-absolutize = "3.1.1"
33-
quick_cache = "0.5.1"
33+
quick_cache = "0.6.0"
3434
serde = { version = "1.0.200", optional = true, features = ["derive", "rc"] }
3535
tempfile = "3.10.1"
3636

src/blob_cache.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ impl From<(ValueLogId, ValueHandle)> for CacheKey {
2222
struct BlobWeighter;
2323

2424
impl Weighter<CacheKey, Item> for BlobWeighter {
25-
// NOTE: quick_cache only supports u32 as weight, but that's fine
26-
// 4 GB blobs are too big anyway
2725
#[allow(clippy::cast_possible_truncation)]
28-
fn weight(&self, _: &CacheKey, blob: &Item) -> u32 {
29-
blob.len() as u32
26+
fn weight(&self, _: &CacheKey, blob: &Item) -> u64 {
27+
blob.len() as u64
3028
}
3129
}
3230

0 commit comments

Comments
 (0)