fix deprecation warning in bench (#9823)

# Objective

- Fix deprecation warning when running benches.

## Solution

- iter -> read
This commit is contained in:
Mike 2023-09-16 02:27:13 -07:00 committed by GitHub
parent e1904bcba1
commit c61faf35b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ impl<const SIZE: usize> Benchmark<SIZE> {
pub fn run(&mut self) {
let mut reader = self.0.get_reader();
for evt in reader.iter(&self.0) {
for evt in reader.read(&self.0) {
std::hint::black_box(evt);
}
}