We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9f539e commit edf073cCopy full SHA for edf073c
benches/benchmarks.rs
@@ -88,7 +88,11 @@ criterion_group!(
88
);
89
90
fn main() {
91
- std::fs::remove_dir_all("./cache").unwrap();
+ // delete cache directory if it exists
92
+ // this is to make sure we're benching on a clean slate
93
+ if let Ok(_) = std::fs::read_dir("./cache") {
94
+ std::fs::remove_dir_all("./cache").unwrap();
95
+ }
96
97
benches();
98
0 commit comments