Skip to content

Commit 1a8dcec

Browse files
committed
glib: Use std::hint::black_box() instead of criterion version of it
1 parent aaff0e0 commit 1a8dcec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

glib/benches/gstring.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 glib::IntoGStr;
3+
use std::hint::black_box;
34

45
pub fn str_into_gstr(c: &mut Criterion) {
56
c.bench_function("str as IntoGStr", |b| {

0 commit comments

Comments
 (0)