Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 3388507

Browse files
authored
Replaces fs-err in remove_tmp_snapshot_archives() (#34839)
1 parent 10590a3 commit 3388507

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

runtime/src/snapshot_utils.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,12 +641,15 @@ pub fn remove_tmp_snapshot_archives(snapshot_archives_dir: impl AsRef<Path>) {
641641
{
642642
let path = entry.path();
643643
let result = if path.is_dir() {
644-
fs_err::remove_dir_all(path)
644+
fs::remove_dir_all(&path)
645645
} else {
646-
fs_err::remove_file(path)
646+
fs::remove_file(&path)
647647
};
648648
if let Err(err) = result {
649-
warn!("Failed to remove temporary snapshot archive: {err}");
649+
warn!(
650+
"Failed to remove temporary snapshot archive '{}': {err}",
651+
path.display(),
652+
);
650653
}
651654
}
652655
}

0 commit comments

Comments
 (0)