Skip to content

Commit aab0246

Browse files
Update criterion requirement from 0.5 to 0.6 (#78)
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 bd1dd17 commit aab0246

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ name = "bench"
3535
harness = false
3636

3737
[dev-dependencies]
38-
criterion = { version = "0.5", features = ["cargo_bench_support"], default-features = false }
38+
criterion = { version = "0.6", default-features = false, features = ["cargo_bench_support"] }
3939
easy-parallel = "3.1.0"
4040
fastrand = "2.0.0"
4141

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)