Skip to content

Commit acf1426

Browse files
authored
benches: Use black_box() from std::hint (#11198)
1 parent 9e3efd4 commit acf1426

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/crates_io_cdn_logs/benches/count_downloads.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crates_io_cdn_logs::{cloudfront, fastly};
2-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
2+
use criterion::{criterion_group, criterion_main, Criterion};
3+
use std::hint::black_box;
34
use std::io::Cursor;
45

56
fn criterion_benchmark(c: &mut Criterion) {

0 commit comments

Comments
 (0)