diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-07 23:28:45 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-07 23:28:45 +0100 |
| commit | 9d1e1772c02032f70b6db584dddae8fd06b490d6 (patch) | |
| tree | 9d97b4d3e1252c4b99f30a19f339700eaab44c45 /cache | |
| parent | d1b7691adb7c40bf21053d324fdac16c544cd536 (diff) | |
| download | jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar.bz2 jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar.zst | |
manual clippy
Diffstat (limited to 'cache')
| -rw-r--r-- | cache/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/src/lib.rs b/cache/src/lib.rs index 4d6bbcf..0a7a2f1 100644 --- a/cache/src/lib.rs +++ b/cache/src/lib.rs @@ -65,7 +65,7 @@ impl Cache { CACHE_GENERATION_LOCKS[bucket(key)].lock().ok() }; - let out = match self.storage.read(&key)? { + let out = match self.storage.read(key)? { Some(x) => x, None => { let value = generate()?; @@ -115,7 +115,7 @@ impl Cache { } } - let data = self.cache(&key, move || { + let data = self.cache(key, move || { let object = generate()?; Ok(serde_json::to_vec(&object)?) })?; |