From c61faf35b8089dd2d6d394aa907d4756de1e31ce Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 16 Sep 2023 02:27:13 -0700 Subject: [PATCH] fix deprecation warning in bench (#9823) # Objective - Fix deprecation warning when running benches. ## Solution - iter -> read --- benches/benches/bevy_ecs/events/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/benches/bevy_ecs/events/iter.rs b/benches/benches/bevy_ecs/events/iter.rs index 4c5ed5375f..f46372c26b 100644 --- a/benches/benches/bevy_ecs/events/iter.rs +++ b/benches/benches/bevy_ecs/events/iter.rs @@ -18,7 +18,7 @@ impl Benchmark { 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); } }