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/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecs/src/lib.rs') diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs index ae3e191..72b5cf9 100644 --- a/ecs/src/lib.rs +++ b/ecs/src/lib.rs @@ -115,7 +115,7 @@ impl World .component_storage .write_nonblock() .expect("Failed to acquire read-write component storage lock") - .push_entity(entity_uid, components.into_vec()) + .push_entity(entity_uid, components.into_array().into()) { tracing::error!("Failed to create entity: {err}"); -- cgit v1.2.3-18-g5258