aboutsummaryrefslogtreecommitdiff
path: root/cache/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-26 14:35:23 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-26 14:35:23 +0200
commitf7e3841426ed4661ede6ccfff9c306141735d465 (patch)
tree793727cc80386bc1715869a3f54986e42897e656 /cache/src/lib.rs
parent81bb9dee3ed8a029bec831e7c3f204cd0ed41472 (diff)
downloadjellything-f7e3841426ed4661ede6ccfff9c306141735d465.tar
jellything-f7e3841426ed4661ede6ccfff9c306141735d465.tar.bz2
jellything-f7e3841426ed4661ede6ccfff9c306141735d465.tar.zst
refactor remuxer trait; add webm support; add back transcodingHEADmaster
Diffstat (limited to 'cache/src/lib.rs')
-rw-r--r--cache/src/lib.rs4
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();