diff --git a/src/inv.rs b/src/inv.rs index 701d82d..ae7aa7f 100644 --- a/src/inv.rs +++ b/src/inv.rs @@ -58,8 +58,8 @@ pub fn list(slot: &str, dir: &str) -> Result<()> { } let mut slotdir: PathBuf = match slot { - "active" | "a" => common::env_config()?.active_dir.clone(), - "inactive" | "i" => common::env_config()?.inactive_dir.clone(), + "active" | "a" => common::env_config()?.active_dir, + "inactive" | "i" => common::env_config()?.inactive_dir, _ => PathBuf::new(), }; diff --git a/src/item.rs b/src/item.rs index 12b3205..a0536d6 100644 --- a/src/item.rs +++ b/src/item.rs @@ -36,8 +36,8 @@ pub fn take(file: &String, slot: &str) -> Result<()> { ); }; let slotdir: PathBuf = match slot { - "active" | "a" => common::env_config()?.active_dir.clone(), - "inactive" | "i" => common::env_config()?.inactive_dir.clone(), + "active" | "a" => common::env_config()?.active_dir, + "inactive" | "i" => common::env_config()?.inactive_dir, _ => PathBuf::new(), }; @@ -102,8 +102,8 @@ pub fn drop(file: &String, slot: &str, dest: PathBuf) -> Result<()> { }; let slotdir: PathBuf = match slot { - "active" | "a" => common::env_config()?.active_dir.clone(), - "inactive" | "i" => common::env_config()?.inactive_dir.clone(), + "active" | "a" => common::env_config()?.active_dir, + "inactive" | "i" => common::env_config()?.inactive_dir, _ => PathBuf::new(), };