diff options
Diffstat (limited to 'engine-ecs/src/component.rs')
| -rw-r--r-- | engine-ecs/src/component.rs | 15 |
1 files changed, 1 insertions, 14 deletions
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<Parts> { 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 { |
