From bd7f9955de11b6112696da4d98d87934c39eaf78 Mon Sep 17 00:00:00 2001 From: blockmath Date: Sun, 23 Jun 2024 16:35:42 -0700 Subject: [PATCH] I thought Rust complained about this. Guess not --- server/src/sim.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/src/sim.rs b/server/src/sim.rs index f53b5968..40cf54e9 100644 --- a/server/src/sim.rs +++ b/server/src/sim.rs @@ -276,10 +276,8 @@ impl Sim { let span = error_span!("step", step = self.step); let _guard = span.enter(); - { - for (_entity, ticker_entity) in self.world.query::<&mut TickerEntity>().iter() { - ticker_entity.ticker.tick(self.step); - } + for (_entity, ticker_entity) in self.world.query::<&mut TickerEntity>().iter() { + ticker_entity.ticker.tick(self.step); } let mut pending_block_updates: Vec = vec![];