diff options
author | HampusM <hampus@hampusmat.com> | 2025-02-09 18:41:26 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-02-09 18:41:26 +0100 |
commit | 2a8718f7c671ab1fc5e38340b467e2bd77f16cc0 (patch) | |
tree | 15d2eba5c57b484c89d3f5e11fe41deebbd1f92e /ecs/src/lib.rs | |
parent | c06d59ffa09e22a98647f5104944e1c13b161963 (diff) |
perf(ecs): replace component::Sequence::into_vec fn with into_array
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r-- | ecs/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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}"); |