mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
fix deprecation warning in bench (#9823)
# Objective - Fix deprecation warning when running benches. ## Solution - iter -> read
This commit is contained in:
parent
e1904bcba1
commit
c61faf35b8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue