Skip to content

Commit

Permalink
fix: cargo clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
fourdim committed Sep 14, 2024
1 parent dfd60a8 commit 776bd3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rye/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,8 @@ pub fn fetch(
// the folder into the permanent location
if with_build_info || !installation_has_build_info(temp_dir.path()) {
let temp_dir = temp_dir.into_path();
fs::rename(&temp_dir, &target_dir).map_err(|err| {
fs::rename(&temp_dir, &target_dir).inspect_err(|_err| {
fs::remove_dir_all(&temp_dir).ok();
err
})

// otherwise move the contents of the `install` folder over.
Expand Down

0 comments on commit 776bd3e

Please sign in to comment.