Skip to content

Commit a1d5912

Browse files
authored
Merge pull request #2433 from ijackson/keep-dir-toplevel
Do not completely remove ~/.rustup/tmp and download
2 parents c349967 + 67896e1 commit a1d5912

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Cargo.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pgp = {version = "0.7", default-features = false}
4747
pulldown-cmark = {version = "0.8", default-features = false}
4848
rand = "0.8"
4949
regex = "1"
50-
remove_dir_all = "0.6.0"
50+
remove_dir_all = "0.7.0"
5151
same-file = "1"
5252
scopeguard = "1"
5353
semver = "0.11"

src/utils/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ where
637637
}
638638

639639
pub fn delete_dir_contents(dir_path: &Path) {
640-
match remove_dir_all::remove_dir_all(dir_path) {
640+
match remove_dir_all::remove_dir_contents(dir_path) {
641641
Err(e) if e.kind() != io::ErrorKind::NotFound => {
642642
panic!("Unable to clean up {}: {:?}", dir_path.display(), e);
643643
}

0 commit comments

Comments
 (0)