diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-18 23:33:29 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-18 23:33:29 +0200 |
commit | a123a1997f3ab527ab83b44ca18bec94883f46d0 (patch) | |
tree | 761c4f0e8e9bbb7834e59af3d6904dee39932923 /import/src/acoustid.rs | |
parent | 5b6fd021cc84ae7f5e1719ff398ff4627493a13c (diff) | |
download | jellything-a123a1997f3ab527ab83b44ca18bec94883f46d0.tar jellything-a123a1997f3ab527ab83b44ca18bec94883f46d0.tar.bz2 jellything-a123a1997f3ab527ab83b44ca18bec94883f46d0.tar.zst |
use impl Hash for cache key instead of string
Diffstat (limited to 'import/src/acoustid.rs')
-rw-r--r-- | import/src/acoustid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/import/src/acoustid.rs b/import/src/acoustid.rs index fe47290..7406976 100644 --- a/import/src/acoustid.rs +++ b/import/src/acoustid.rs @@ -17,7 +17,7 @@ pub(crate) struct Fingerprint { } pub(crate) async fn acoustid_fingerprint(path: &Path) -> Result<Arc<Fingerprint>> { - async_cache_memory(&["fpcalc", &path.to_string_lossy()], || async move { + async_cache_memory("fpcalc", path, || async move { let child = Command::new("fpcalc") .arg("-json") .arg(path) |