Skip to content

Commit

Permalink
Merge pull request #2433 from ijackson/keep-dir-toplevel
Browse files Browse the repository at this point in the history
Do not completely remove ~/.rustup/tmp and download
  • Loading branch information
rbtcollins authored May 18, 2021
2 parents c349967 + 67896e1 commit a1d5912
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pgp = {version = "0.7", default-features = false}
pulldown-cmark = {version = "0.8", default-features = false}
rand = "0.8"
regex = "1"
remove_dir_all = "0.6.0"
remove_dir_all = "0.7.0"
same-file = "1"
scopeguard = "1"
semver = "0.11"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ where
}

pub fn delete_dir_contents(dir_path: &Path) {
match remove_dir_all::remove_dir_all(dir_path) {
match remove_dir_all::remove_dir_contents(dir_path) {
Err(e) if e.kind() != io::ErrorKind::NotFound => {
panic!("Unable to clean up {}: {:?}", dir_path.display(), e);
}
Expand Down

0 comments on commit a1d5912

Please sign in to comment.