summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-09-05 20:36:47 +0100
committerJoe Carstairs <me@joeac.net>2026-09-05 20:36:47 +0100
commit8594f2959cf1f58825b0d6e1fb3c175d87a6e74c (patch)
tree8e672ceaf0117139de325dda3a0b86e90026801a
parent4f7064fe885cc0a0502b526128f588dea2708418 (diff)
remove unnecessary borrow
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 3dcdf85..5d63bd3 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -24,7 +24,7 @@ pub fn default_config_file_locations() -> Vec<String> {
impl Config {
pub fn parse_config_file_at_path(path: &str) -> anyhow::Result<Config> {
let path = Path::new(path);
- let file = File::open(&path)?;
+ let file = File::open(path)?;
let contents = read_to_string(file)?;
Ok(toml::from_str(&contents)?)
}