Skip to content

Commit

Permalink
Update src/cargo/ops/cargo_clean.rs
Browse files Browse the repository at this point in the history
Change Rc<str> to &str

Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
  • Loading branch information
osiewicz and weihanglo authored May 2, 2024
1 parent 634dca4 commit a49a2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/ops/cargo_clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ fn clean_specs(
continue;
}
let crate_name: Rc<str> = target.crate_name().into();
let path_dot: Rc<str> = format!("{crate_name}.").into();
let path_dash: Rc<str> = 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,
Expand Down

0 comments on commit a49a2b9

Please sign in to comment.