From 8594f2959cf1f58825b0d6e1fb3c175d87a6e74c Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 5 Sep 2026 20:36:47 +0100 Subject: remove unnecessary borrow --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { impl Config { pub fn parse_config_file_at_path(path: &str) -> anyhow::Result { 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)?) } -- cgit v1.2.3