Skip to content

Commit 2a55d63

Browse files
Use inspect_err over map_err (#1385)
1 parent 06db9d3 commit 2a55d63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rye/src/bootstrap.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,8 @@ pub fn fetch(
475475
// the folder into the permanent location
476476
if with_build_info || !installation_has_build_info(temp_dir.path()) {
477477
let temp_dir = temp_dir.into_path();
478-
fs::rename(&temp_dir, &target_dir).map_err(|err| {
478+
fs::rename(&temp_dir, &target_dir).inspect_err(|_| {
479479
fs::remove_dir_all(&temp_dir).ok();
480-
err
481480
})
482481

483482
// otherwise move the contents of the `install` folder over.

0 commit comments

Comments
 (0)