Skip to content

Commit e14e36e

Browse files
committed
Adapt gix-config benches to changes in criterion
`criterion` 0.6.0 deprecates `criterion::black_box()`, preferring `std::hint::black_box()` (which `criterion::black_box()` now uses). This commit makes the recommended switch to `std::hint::black_box()`, fixing new `clippy` errors.
1 parent a4c8de5 commit e14e36e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gix-config/benches/large_config_file.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
1+
use criterion::{criterion_group, criterion_main, Criterion};
22
use gix_config::{parse::Events, File};
3+
use std::hint::black_box;
34

45
fn gix_config(c: &mut Criterion) {
56
c.bench_function("GitConfig large config file", |b| {

0 commit comments

Comments
 (0)