Skip to content

Commit b07456e

Browse files
committed
cargo clean: use remove_dir_all
1 parent 6956c04 commit b07456e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/ops/cargo_clean.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ fn rm_rf(path: &Path, config: &Config, progress: &mut dyn CleaningProgressBar) -
297297
let entry = entry?;
298298
progress.on_clean()?;
299299
if entry.file_type().is_dir() {
300-
paths::remove_dir(entry.path()).with_context(|| "could not remove build directory")?;
300+
paths::remove_dir_all(entry.path())
301+
.with_context(|| "could not remove build directory")?;
301302
} else {
302303
paths::remove_file(entry.path()).with_context(|| "failed to remove build artifact")?;
303304
}

0 commit comments

Comments
 (0)