Skip to content

Commit a49a2b9

Browse files
osiewiczweihanglo
andauthored
Update src/cargo/ops/cargo_clean.rs
Change Rc<str> to &str Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
1 parent 634dca4 commit a49a2b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/ops/cargo_clean.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ fn clean_specs(
198198
continue;
199199
}
200200
let crate_name: Rc<str> = target.crate_name().into();
201-
let path_dot: Rc<str> = format!("{crate_name}.").into();
202-
let path_dash: Rc<str> = format!("{crate_name}-").into();
201+
let path_dot: &str = &format!("{crate_name}.");
202+
let path_dash: &str = &format!("{crate_name}-");
203203
for &mode in &[
204204
CompileMode::Build,
205205
CompileMode::Test,

0 commit comments

Comments
 (0)