Skip to content

Commit 13ad298

Browse files
authored
Use std::hint::black_box instead of deprecated criterion::black_box
1 parent bd5a3a3 commit 13ad298

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

benches/bench.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
use std::{any::type_name, fmt::Debug};
1+
#![allow(clippy::incompatible_msrv)] // false positive: https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187
2+
3+
use std::{any::type_name, fmt::Debug, hint::black_box};
24

35
use concurrent_queue::{ConcurrentQueue, PopError};
4-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
6+
use criterion::{criterion_group, criterion_main, Criterion};
57
use easy_parallel::Parallel;
68

79
const COUNT: usize = 100_000;

0 commit comments

Comments
 (0)