mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(error): add wrappers for std::fs methods to track path for errors (#3367)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -130,7 +130,7 @@ where
|
||||
b.iter_with_setup(
|
||||
|| {
|
||||
// Reset DB
|
||||
let _ = std::fs::remove_dir_all(bench_db_path);
|
||||
let _ = fs::remove_dir_all(bench_db_path);
|
||||
(
|
||||
input.clone(),
|
||||
Arc::try_unwrap(create_test_rw_db_with_path(bench_db_path)).unwrap(),
|
||||
@ -156,7 +156,7 @@ where
|
||||
b.iter_with_setup(
|
||||
|| {
|
||||
// Reset DB
|
||||
let _ = std::fs::remove_dir_all(bench_db_path);
|
||||
let _ = fs::remove_dir_all(bench_db_path);
|
||||
(input, Arc::try_unwrap(create_test_rw_db_with_path(bench_db_path)).unwrap())
|
||||
},
|
||||
|(input, db)| {
|
||||
@ -227,7 +227,7 @@ where
|
||||
b.iter_with_setup(
|
||||
|| {
|
||||
// Reset DB
|
||||
let _ = std::fs::remove_dir_all(bench_db_path);
|
||||
let _ = fs::remove_dir_all(bench_db_path);
|
||||
(
|
||||
input.clone(),
|
||||
Arc::try_unwrap(create_test_rw_db_with_path(bench_db_path)).unwrap(),
|
||||
@ -253,7 +253,7 @@ where
|
||||
b.iter_with_setup(
|
||||
|| {
|
||||
// Reset DB
|
||||
let _ = std::fs::remove_dir_all(bench_db_path);
|
||||
let _ = fs::remove_dir_all(bench_db_path);
|
||||
|
||||
(input, Arc::try_unwrap(create_test_rw_db_with_path(bench_db_path)).unwrap())
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user