From 678dffeb9f2db12023f10ef8bb0dfa73c2df4436 Mon Sep 17 00:00:00 2001 From: Isse Date: Sun, 15 Oct 2023 23:10:14 +0200 Subject: [PATCH] use into_iter --- common/state/src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/state/src/state.rs b/common/state/src/state.rs index d34bdbee83..822349bd2f 100644 --- a/common/state/src/state.rs +++ b/common/state/src/state.rs @@ -573,9 +573,9 @@ impl State { } let outcome = self.ecs.read_resource::>(); while let Some(outcomes) = scheduled_changes.outcomes.poll(current_time) { - for (pos, block) in outcomes.iter() { + for (pos, block) in outcomes.into_iter() { if let Some(sprite) = block.get_sprite() { - outcome.emit_now(Outcome::SpriteDelete { pos: *pos, sprite }); + outcome.emit_now(Outcome::SpriteDelete { pos, sprite }); } } }