diff --git a/src/config.rs b/src/config.rs index b7598bf..39e83cb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -267,7 +267,7 @@ pub fn get_config_data() -> Result { debug!("Checking locations for config file: {:?}", &locations); for location in &locations { - let file = OpenOptions::new().read(true).open(location.clone()); + let file = OpenOptions::new().read(true).open(location); match file { Ok(file) => { debug!("Found file at {location:?}.");