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/component.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'engine-ecs/src/component.rs') diff --git a/engine-ecs/src/component.rs b/engine-ecs/src/component.rs index df495ce..71608b1 100644 --- a/engine-ecs/src/component.rs +++ b/engine-ecs/src/component.rs @@ -26,7 +26,7 @@ pub mod local; pub(crate) mod storage; /// A component that is not a pair and is not a sole. -pub trait Component: WithAssociatedId + SystemInput + Any + IntoParts +pub trait Component: WithAssociatedId + SystemInput + Any + Into { fn type_reflection() -> Option<&'static TypeReflection> where @@ -252,11 +252,6 @@ pub enum HandleError #[error("Failed to acquire component lock")] pub struct AcquireLockError(#[source] LockError); -pub trait IntoParts -{ - fn into_parts(self) -> Parts; -} - /// The parts of a component. #[derive(Debug)] #[non_exhaustive] @@ -279,14 +274,6 @@ impl Parts } } -impl IntoParts for Parts -{ - fn into_parts(self) -> Parts - { - self - } -} - #[derive(Debug)] pub struct PartsBuilder { -- cgit v1.2.3-18-g5258