From 9cadce6776d53eb967183e23f9e9b766d27a14c7 Mon Sep 17 00:00:00 2001 From: Thorsten Ehlers Date: Sat, 18 Nov 2023 17:11:46 +0100 Subject: [PATCH] Copy head position instead of cloning it --- src/game/systems/control.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/systems/control.rs b/src/game/systems/control.rs index bd510f2..ab22f0b 100644 --- a/src/game/systems/control.rs +++ b/src/game/systems/control.rs @@ -495,7 +495,7 @@ pub fn eat( show_message_writer.send(ShowMessage { text: new_segments.to_string(), - position: head_pos.clone(), + position: *head_pos, }); spawn_consumables_writer.send(SpawnConsumables {