Skip to content

Commit b4780a9

Browse files
authored
Migrate to std black_box (#303)
1 parent cf1df6f commit b4780a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bitwarden-crypto/benches/default_allocator.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#![allow(missing_docs)]
22

3-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
3+
use std::hint::black_box;
4+
5+
use criterion::{criterion_group, criterion_main, Criterion};
46

57
fn allocate_string(s: &str) -> String {
68
s.to_owned()

0 commit comments

Comments
 (0)