Skip to content

Commit f25ec4e

Browse files
committed
Fix deprecated items
1 parent 844aa79 commit f25ec4e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

benches/executor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ fn running_benches(c: &mut Criterion) {
462462
let (resp_send, resp_recv) =
463463
async_channel::bounded(1);
464464
db_send.send(resp_send).await.unwrap();
465-
black_box(resp_recv.recv().await.unwrap());
465+
core::hint::black_box(
466+
resp_recv.recv().await.unwrap(),
467+
);
466468
}
467469

468470
// Send the data back...

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)