diff --git a/Cargo.toml b/Cargo.toml index 3f9c94a..c96b4d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ futures-lite = { version = "2.0.0", default-features = false, features = ["std"] async-channel = "2.0.0" async-io = "2.1.0" async-lock = "3.0.0" -criterion = { version = "0.5", default-features = false, features = ["cargo_bench_support"] } +criterion = { version = "0.6", default-features = false, features = ["cargo_bench_support"] } easy-parallel = "3.1.0" fastrand = "2.0.0" futures-lite = "2.0.0" diff --git a/benches/executor.rs b/benches/executor.rs index 42fedbd..5fc140f 100644 --- a/benches/executor.rs +++ b/benches/executor.rs @@ -1,3 +1,6 @@ +#![allow(clippy::incompatible_msrv)] // false positive: https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187 + +use std::hint::black_box; use std::mem; use std::thread::available_parallelism; @@ -380,9 +383,7 @@ fn running_benches(c: &mut Criterion) { let (resp_send, resp_recv) = async_channel::bounded(1); db_send.send(resp_send).await.unwrap(); - criterion::black_box( - resp_recv.recv().await.unwrap(), - ); + black_box(resp_recv.recv().await.unwrap()); } // Send the data back... @@ -461,9 +462,7 @@ fn running_benches(c: &mut Criterion) { let (resp_send, resp_recv) = async_channel::bounded(1); db_send.send(resp_send).await.unwrap(); - criterion::black_box( - resp_recv.recv().await.unwrap(), - ); + black_box(resp_recv.recv().await.unwrap()); } // Send the data back...