summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-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)?)
}