We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
inspect_err
map_err
1 parent 06db9d3 commit 2a55d63Copy full SHA for 2a55d63
rye/src/bootstrap.rs
@@ -475,9 +475,8 @@ pub fn fetch(
475
// the folder into the permanent location
476
if with_build_info || !installation_has_build_info(temp_dir.path()) {
477
let temp_dir = temp_dir.into_path();
478
- fs::rename(&temp_dir, &target_dir).map_err(|err| {
+ fs::rename(&temp_dir, &target_dir).inspect_err(|_| {
479
fs::remove_dir_all(&temp_dir).ok();
480
- err
481
})
482
483
// otherwise move the contents of the `install` folder over.
0 commit comments