diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-26 14:35:23 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-26 14:35:23 +0200 |
commit | f7e3841426ed4661ede6ccfff9c306141735d465 (patch) | |
tree | 793727cc80386bc1715869a3f54986e42897e656 /cache | |
parent | 81bb9dee3ed8a029bec831e7c3f204cd0ed41472 (diff) | |
download | jellything-f7e3841426ed4661ede6ccfff9c306141735d465.tar jellything-f7e3841426ed4661ede6ccfff9c306141735d465.tar.bz2 jellything-f7e3841426ed4661ede6ccfff9c306141735d465.tar.zst |
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 52245d6..115741c 100644 --- a/cache/src/lib.rs +++ b/cache/src/lib.rs @@ -127,10 +127,10 @@ thread_local! { pub static WITHIN_CACHE_FILE: AtomicBool = const { AtomicBool::n pub fn cache_file<Fun>( kind: &str, key: impl Hash, - mut generate: Fun, + generate: Fun, ) -> Result<CachePath, anyhow::Error> where - Fun: FnMut(std::fs::File) -> Result<(), anyhow::Error>, + Fun: FnOnce(std::fs::File) -> Result<(), anyhow::Error>, { let (bucket, location) = cache_location(kind, key); let loc_abs = location.abs(); |