Skip to content

Commit b5b0655

Browse files
authored
Merge pull request #610 from ldm0/ldm_lazy_static
Remove unnecessary lazy_static usage in `bench.rs`
2 parents 43cf197 + abccbd8 commit b5b0655

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

benches/bench.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ impl Iterator for RandomKeys {
4545

4646
// Just an arbitrary side effect to make the maps not shortcircuit to the non-dropping path
4747
// when dropping maps/entries (most real world usages likely have drop in the key or value)
48-
lazy_static::lazy_static! {
49-
static ref SIDE_EFFECT: AtomicUsize = AtomicUsize::new(0);
50-
}
48+
static SIDE_EFFECT: AtomicUsize = AtomicUsize::new(0);
5149

5250
#[derive(Clone)]
5351
struct DropType(usize);

0 commit comments

Comments
 (0)