Add unsafe attributes at yarte fixed bench

This commit is contained in:
Juan Aguilar Santillana 2020-06-16 08:23:24 +00:00
parent b773a28e2a
commit 1aca11acfe
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ pub fn big_table(b: &mut criterion::Bencher<'_>, size: &usize) {
}
let t = BigTable { table };
b.iter(|| {
black_box(t.call(&mut [MaybeUninit::uninit(); 109915]).unwrap());
black_box(unsafe { t.call(&mut [MaybeUninit::uninit(); 109915]) }.unwrap());
});
}
@ -47,7 +47,7 @@ pub fn teams(b: &mut criterion::Bencher<'_>) {
],
};
b.iter(|| {
black_box(t.call(&mut [MaybeUninit::uninit(); 239]).unwrap());
black_box(unsafe { t.call(&mut [MaybeUninit::uninit(); 239]) }.unwrap());
});
}