Skip to content

Commit

Permalink
Merge pull request #6 from fjall-rs/renovate/quick_cache-0.x
Browse files Browse the repository at this point in the history
fix(deps): update rust crate quick_cache to 0.6.0
  • Loading branch information
marvin-j97 authored Jul 5, 2024
2 parents 545dce8 + 9234767 commit a4560f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 2 additions & 4 deletions src/blob_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ impl From<(ValueLogId, ValueHandle)> for CacheKey {
struct BlobWeighter;

impl Weighter<CacheKey, Item> 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
}
}

Expand Down

0 comments on commit a4560f5

Please sign in to comment.