diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-10 15:28:36 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-10 15:28:36 +0200 |
commit | 05d11426a8e60fa060733eb8ae7843bc2ae9725c (patch) | |
tree | 57cfad9cedf1eb50de193f1657b42234745c044e /base/src/cache.rs | |
parent | c0365c8c64f403fd9ee75c0db1a9ed6134633e8f (diff) | |
download | jellything-05d11426a8e60fa060733eb8ae7843bc2ae9725c.tar jellything-05d11426a8e60fa060733eb8ae7843bc2ae9725c.tar.bz2 jellything-05d11426a8e60fa060733eb8ae7843bc2ae9725c.tar.zst |
apply many clippy issue
Diffstat (limited to 'base/src/cache.rs')
-rw-r--r-- | base/src/cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/src/cache.rs b/base/src/cache.rs index 68f191e..5ded6f8 100644 --- a/base/src/cache.rs +++ b/base/src/cache.rs @@ -110,7 +110,7 @@ where return Err(e); } } - rename(temp_path, &location.abs()).context("rename cache")?; + rename(temp_path, location.abs()).context("rename cache")?; } drop(_guard); Ok(location) @@ -150,7 +150,7 @@ where .context("encoding cache object")?; Ok(()) })?; - let mut file = std::fs::File::open(&location.abs())?; + let mut file = std::fs::File::open(location.abs())?; let object = bincode::decode_from_std_read::<T, _, _>(&mut file, bincode::config::standard()) .context("decoding cache object")?; let object = Arc::new(object); |