Skip to content

Commit

Permalink
unnecessary to_owned
Browse files Browse the repository at this point in the history
  • Loading branch information
bomgar committed Jun 1, 2024
1 parent 2cddc16 commit e415f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn remove_project(maybe_config: Result<Config, AppError>, 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);

Expand Down

0 comments on commit e415f76

Please sign in to comment.