Skip to content

Commit

Permalink
Dyn instead of impl
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-lw committed Jan 5, 2022
1 parent 9b39df9 commit 60cfe7e
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 @@ -225,7 +225,7 @@ fn escape_glob_path(pattern: &Path) -> CargoResult<String> {
fn rm_rf_glob(
pattern: &Path,
config: &Config,
progress: &mut impl CleaningProgressBar,
progress: &mut dyn CleaningProgressBar,
) -> CargoResult<()> {
// TODO: Display utf8 warning to user? Or switch to globset?
let pattern = pattern
Expand All @@ -237,7 +237,7 @@ fn rm_rf_glob(
Ok(())
}

fn rm_rf(path: &Path, config: &Config, progress: &mut impl CleaningProgressBar) -> CargoResult<()> {
fn rm_rf(path: &Path, config: &Config, progress: &mut dyn CleaningProgressBar) -> CargoResult<()> {
if fs::symlink_metadata(path).is_err() {
return Ok(());
}
Expand Down

0 comments on commit 60cfe7e

Please sign in to comment.