From c121d94f0b27bc04ffbdca55cd0939c1401d5a2e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 27 Jan 2025 15:26:00 +0100 Subject: clippy: fixes and ignores --- shared/src/store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared/src/store.rs') diff --git a/shared/src/store.rs b/shared/src/store.rs index ddcee2c..b0dbe45 100644 --- a/shared/src/store.rs +++ b/shared/src/store.rs @@ -88,7 +88,7 @@ impl ResourceStore { } ResourceStore::Memory(map) => Ok(map.lock().unwrap().get(&key).map(|x| x.to_vec())), ResourceStore::Filesystem(root) => { - let path = fs_cache_path(&root, key); + let path = fs_cache_path(root, key); if path.exists() { let mut buf = Vec::new(); File::open(path)?.read_to_end(&mut buf)?; @@ -113,7 +113,7 @@ impl ResourceStore { map.lock().unwrap().insert(key, value.to_vec()); } ResourceStore::Filesystem(root) => { - let path = fs_cache_path(&root, key); + let path = fs_cache_path(root, key); if !path.exists() { let path_temp = path.with_extension("part"); File::create(&path_temp)?.write_all(value)?; -- cgit v1.2.3-70-g09d2