From 2a8718f7c671ab1fc5e38340b467e2bd77f16cc0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 9 Feb 2025 18:41:26 +0100 Subject: perf(ecs): replace component::Sequence::into_vec fn with into_array --- ecs/src/actions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/actions.rs') diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index 3988a77..89fd84a 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -24,7 +24,7 @@ impl<'world> Actions<'world> pub fn spawn(&mut self, components: Comps) { self.action_queue.push(Action::Spawn( - components.into_vec(), + components.into_array().into(), EventIds { ids: Comps::added_event_ids() }, )); } @@ -50,7 +50,7 @@ impl<'world> Actions<'world> self.action_queue.push(Action::AddComponents( entity_uid, - components.into_vec(), + components.into_array().into(), EventIds { ids: Comps::added_event_ids() }, )); } -- cgit v1.2.3-18-g5258