diff options
Diffstat (limited to 'shared/src/store.rs')
-rw-r--r-- | shared/src/store.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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)?; |