Skip to content

Commit c329457

Browse files
committed
cargo clean: use remove_dir_all
1 parent d28c9b8 commit c329457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/ops/cargo_clean.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ fn rm_rf(path: &Path, config: &Config, progress: &mut dyn CleaningProgressBar) -
295295
let entry = entry?;
296296
progress.on_clean()?;
297297
if entry.file_type().is_dir() {
298-
paths::remove_dir(entry.path()).with_context(|| "could not remove build directory")?;
298+
paths::remove_dir_all(entry.path())
299+
.with_context(|| "could not remove build directory")?;
299300
} else {
300301
paths::remove_file(entry.path()).with_context(|| "failed to remove build artifact")?;
301302
}

0 commit comments

Comments
 (0)