Skip to content

Commit 95ec34d

Browse files
Update criterion requirement from 0.5 to 0.6 (#142)
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](bheisler/criterion.rs@0.5.0...0.6.0) --- updated-dependencies: - dependency-name: criterion dependency-version: 0.6.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taiki Endo <[email protected]>
1 parent b3269e1 commit 95ec34d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ futures-lite = { version = "2.0.0", default-features = false, features = ["std"]
3333
async-channel = "2.0.0"
3434
async-io = "2.1.0"
3535
async-lock = "3.0.0"
36-
criterion = { version = "0.5", default-features = false, features = ["cargo_bench_support"] }
36+
criterion = { version = "0.6", default-features = false, features = ["cargo_bench_support"] }
3737
easy-parallel = "3.1.0"
3838
fastrand = "2.0.0"
3939
futures-lite = "2.0.0"

benches/executor.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![allow(clippy::incompatible_msrv)] // false positive: https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187
2+
3+
use std::hint::black_box;
14
use std::mem;
25
use std::thread::available_parallelism;
36

@@ -380,9 +383,7 @@ fn running_benches(c: &mut Criterion) {
380383
let (resp_send, resp_recv) =
381384
async_channel::bounded(1);
382385
db_send.send(resp_send).await.unwrap();
383-
criterion::black_box(
384-
resp_recv.recv().await.unwrap(),
385-
);
386+
black_box(resp_recv.recv().await.unwrap());
386387
}
387388

388389
// Send the data back...
@@ -461,9 +462,7 @@ fn running_benches(c: &mut Criterion) {
461462
let (resp_send, resp_recv) =
462463
async_channel::bounded(1);
463464
db_send.send(resp_send).await.unwrap();
464-
criterion::black_box(
465-
resp_recv.recv().await.unwrap(),
466-
);
465+
black_box(resp_recv.recv().await.unwrap());
467466
}
468467

469468
// Send the data back...

0 commit comments

Comments
 (0)