From dc216a80d541bdd68d78117365e8dda8c0fc93ab Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Thu, 2 Jun 2022 22:24:46 -0700 Subject: [PATCH] Remove clone --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:?}.");