Skip to content

Commit b7e8c75

Browse files
committed
pop while
1 parent 4c5bfa2 commit b7e8c75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benches/bench.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ pub fn bench_increment(c: &mut Criterion) {
206206
pub fn bench_pop(c: &mut Criterion) {
207207
for size in SIZE_NIBBLES {
208208
bench_arbitrary_with(c, format!("pop/{size}"), arbitrary_nibbles(size), |nibbles| {
209-
black_box(nibbles.clone()).pop()
209+
let mut nibbles = nibbles.clone();
210+
while nibbles.pop().is_some() {}
210211
});
211212
}
212213
}

0 commit comments

Comments
 (0)