Skip to content

Commit e760280

Browse files
committed
Fix deprecated items
1 parent 1fca8da commit e760280

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

benches/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ fn running_benches(c: &mut Criterion) {
380380
let (resp_send, resp_recv) =
381381
async_channel::bounded(1);
382382
db_send.send(resp_send).await.unwrap();
383-
criterion::black_box(
383+
core::hint::black_box(
384384
resp_recv.recv().await.unwrap(),
385385
);
386386
}
@@ -461,7 +461,7 @@ fn running_benches(c: &mut Criterion) {
461461
let (resp_send, resp_recv) =
462462
async_channel::bounded(1);
463463
db_send.send(resp_send).await.unwrap();
464-
criterion::black_box(
464+
core::hint::black_box(
465465
resp_recv.recv().await.unwrap(),
466466
);
467467
}

benches/local_executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ fn running_benches(c: &mut Criterion) {
320320
for _ in 0..web_rng.usize(STEPS / 2..STEPS) {
321321
let (resp_send, resp_recv) = async_channel::bounded(1);
322322
db_send.send(resp_send).await.unwrap();
323-
criterion::black_box(resp_recv.recv().await.unwrap());
323+
core::hint::black_box(resp_recv.recv().await.unwrap());
324324
}
325325

326326
// Send the data back...
@@ -393,7 +393,7 @@ fn running_benches(c: &mut Criterion) {
393393
for _ in 0..web_rng.usize(STEPS / 2..STEPS) {
394394
let (resp_send, resp_recv) = async_channel::bounded(1);
395395
db_send.send(resp_send).await.unwrap();
396-
criterion::black_box(resp_recv.recv().await.unwrap());
396+
core::hint::black_box(resp_recv.recv().await.unwrap());
397397
}
398398

399399
// Send the data back...

0 commit comments

Comments
 (0)