Skip to content

Commit

Permalink
fix deprecation warning in bench (#9823)
Browse files Browse the repository at this point in the history
# Objective

- Fix deprecation warning when running benches.

## Solution

- iter -> read
  • Loading branch information
hymm authored Sep 16, 2023
1 parent e1904bc commit c61faf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/benches/bevy_ecs/events/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit c61faf3

Please sign in to comment.