aboutsummaryrefslogtreecommitdiff
path: root/base/src/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/cache.rs')
-rw-r--r--base/src/cache.rs4
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);