From e415f766f5859b7780e79bc63bce3eb22e3099bb Mon Sep 17 00:00:00 2001 From: Patrick Haun Date: Sat, 1 Jun 2024 21:24:45 +0200 Subject: [PATCH] unnecessary to_owned --- src/project/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project/mod.rs b/src/project/mod.rs index 5392458..f742f18 100644 --- a/src/project/mod.rs +++ b/src/project/mod.rs @@ -57,7 +57,7 @@ pub fn remove_project(maybe_config: Result, project_name: &str if !config.projects.contains_key(project_name) { Err(AppError::UserError(format!("Project key {} does not exist in config", project_name))) - } else if let Some(project) = config.projects.get(&project_name.to_owned()).cloned() { + } else if let Some(project) = config.projects.get(project_name).cloned() { if purge_directory { let path = config.actual_path_to_project(&project);