From b2a130a6e30b82a7e0f80347f916265a467a4238 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 1 Dec 2026 17:42:12 +0100 Subject: refactor(engine-ecs): replace component::IntoParts with std From/Into traits --- engine-ecs/src/actions.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'engine-ecs/src/actions.rs') diff --git a/engine-ecs/src/actions.rs b/engine-ecs/src/actions.rs index f4967df..21122c8 100644 --- a/engine-ecs/src/actions.rs +++ b/engine-ecs/src/actions.rs @@ -3,7 +3,6 @@ use std::borrow::Cow; use crate::bundle::Bundle; use crate::component::{ Component, - IntoParts, Parts as ComponentParts, RemovableTuple as RemovableComponentTuple, }; @@ -67,7 +66,7 @@ impl Actions<'_> let components_parts = bundle .iter_component_parts() - .chain([EntityName { name: name.into() }.into_parts()]) + .chain([EntityName { name: name.into() }.into()]) .collect::>(); if let Some(ComponentParts { id: sole_id, .. }) = components_parts @@ -211,7 +210,7 @@ impl Actions<'_> .relation_id(pair_id.relation()) .target_id(new_target_id) .build() - .into_parts(), + .into(), }); } @@ -241,7 +240,7 @@ impl Actions<'_> .relation_id(pair_id.relation()) .target_as_data(new_target) .build() - .into_parts(), + .into(), }); } @@ -271,7 +270,7 @@ impl Actions<'_> .relation_id(new_relation_id) .target_id(pair_id.target()) .build() - .into_parts(), + .into(), }); } @@ -301,7 +300,7 @@ impl Actions<'_> .relation_as_data(new_relation) .target_id(pair_id.target()) .build() - .into_parts(), + .into(), }); } @@ -309,8 +308,7 @@ impl Actions<'_> /// of the sole. pub fn create_sole(&mut self, sole: SoleT) -> Uid { - self.action_queue - .push(Action::CreateSole(sole.into_parts())); + self.action_queue.push(Action::CreateSole(sole.into())); SoleT::id() } -- cgit v1.2.3-18-g5258