diff --git a/Cargo.toml b/Cargo.toml index 69ae170..d230295 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ name = "bench" harness = false [dev-dependencies] -criterion = { version = "0.5", features = ["cargo_bench_support"], default-features = false } +criterion = { version = "0.6", default-features = false, features = ["cargo_bench_support"] } easy-parallel = "3.1.0" fastrand = "2.0.0" diff --git a/benches/bench.rs b/benches/bench.rs index 6e82019..04a20ec 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,7 +1,9 @@ -use std::{any::type_name, fmt::Debug}; +#![allow(clippy::incompatible_msrv)] // false positive: https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187 + +use std::{any::type_name, fmt::Debug, hint::black_box}; use concurrent_queue::{ConcurrentQueue, PopError}; -use criterion::{black_box, criterion_group, criterion_main, Criterion}; +use criterion::{criterion_group, criterion_main, Criterion}; use easy_parallel::Parallel; const COUNT: usize = 100_000;