Skip to content

Commit 978dbe0

Browse files
committed
chore: log on err
1 parent d89c8ec commit 978dbe0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benches/src/utils.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ impl Drop for ShallowTempDir {
4444
});
4545

4646
if should_clean_up {
47-
// Ignore errors when removing the directory
48-
let _ = std::fs::remove_dir_all(&self.path);
47+
if let Err(e) = std::fs::remove_dir_all(&self.path) {
48+
eprintln!("Failed to remove temp directory: {:?}", e);
49+
}
4950
}
5051
}
5152
}

0 commit comments

Comments
 (0)