Skip to content

Commit

Permalink
I thought Rust complained about this. Guess not
Browse files Browse the repository at this point in the history
  • Loading branch information
blockmath authored Jun 23, 2024
1 parent 524a4f3 commit c0bd114
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/src/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ impl Sim {
let _guard = span.enter();

{
let mut ticker_query = self.world.query::<&mut TickerEntity>();
let ticker_iter = ticker_query.iter();
for (_entity, ticker_entity) in ticker_iter {
for (_entity, ticker_entity) in self.world.query::<&mut TickerEntity>().iter() {
ticker_entity.ticker.tick(self.step);
}
}
Expand Down

0 comments on commit c0bd114

Please sign in to comment.