From a49a2b9584e85d98171b69c66a9eba5b94a59921 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Thu, 2 May 2024 12:29:28 +0200 Subject: [PATCH] Update src/cargo/ops/cargo_clean.rs Change Rc to &str Co-authored-by: Weihang Lo --- src/cargo/ops/cargo_clean.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_clean.rs b/src/cargo/ops/cargo_clean.rs index 3cea031a460..9adaa24581b 100644 --- a/src/cargo/ops/cargo_clean.rs +++ b/src/cargo/ops/cargo_clean.rs @@ -198,8 +198,8 @@ fn clean_specs( continue; } let crate_name: Rc = target.crate_name().into(); - let path_dot: Rc = format!("{crate_name}.").into(); - let path_dash: Rc = format!("{crate_name}-").into(); + let path_dot: &str = &format!("{crate_name}."); + let path_dash: &str = &format!("{crate_name}-"); for &mode in &[ CompileMode::Build, CompileMode::Test,