We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad97289 + 82d655f commit 00da702Copy full SHA for 00da702
backhand/benches/benchmark.rs
@@ -17,12 +17,12 @@ fn read_write(file: File, offset: u64) {
17
18
// convert to bytes
19
let mut output = Cursor::new(vec![]);
20
- black_box(new_filesystem.write(&mut output).unwrap());
+ std::hint::black_box(new_filesystem.write(&mut output).unwrap());
21
}
22
23
fn read(file: File, offset: u64) {
24
let file = BufReader::new(file);
25
- black_box(FilesystemReader::from_reader_with_offset(file, offset).unwrap());
+ std::hint::black_box(FilesystemReader::from_reader_with_offset(file, offset).unwrap());
26
27
28
pub fn bench_read_write(c: &mut Criterion) {
0 commit comments