From 05d11426a8e60fa060733eb8ae7843bc2ae9725c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 10 Jun 2024 15:28:36 +0200 Subject: apply many clippy issue --- base/src/cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/src/cache.rs') 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::(&mut file, bincode::config::standard()) .context("decoding cache object")?; let object = Arc::new(object); -- cgit v1.2.3-70-g09d2