Skip to content

Commit 84120cb

Browse files
committed
Update to criterion 0.6
1 parent da7859f commit 84120cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository = "https://github.com/dtolnay/unicode-ident"
1212
rust-version = "1.31"
1313

1414
[dev-dependencies]
15-
criterion = { version = "0.5", default-features = false }
15+
criterion = { version = "0.6", default-features = false }
1616
fst = "0.4"
1717
rand = "0.9"
1818
roaring = "0.10"

benches/xid.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ mod roaring;
2222
#[path = "../tests/trie/mod.rs"]
2323
mod trie;
2424

25-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
25+
use criterion::{criterion_group, criterion_main, Criterion};
2626
use rand::distr::{Bernoulli, Distribution, Uniform};
2727
use rand::rngs::SmallRng;
2828
use rand::SeedableRng;
29+
use std::hint::black_box;
2930
use std::time::Duration;
3031

3132
fn gen_string(p_nonascii: u32) -> String {

0 commit comments

Comments
 (0)