diff options
Diffstat (limited to 'ecs/src/entity.rs')
-rw-r--r-- | ecs/src/entity.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ecs/src/entity.rs b/ecs/src/entity.rs index 196bd01..4496a2b 100644 --- a/ecs/src/entity.rs +++ b/ecs/src/entity.rs @@ -19,7 +19,6 @@ use crate::{EntityComponentRef, World}; #[derive(Debug)] pub struct Handle<'a> { - _world: &'a World, archetype: &'a Archetype, entity: &'a ArchetypeEntity, } @@ -97,13 +96,9 @@ impl<'a> Handle<'a> } } - pub(crate) fn new( - world: &'a World, - archetype: &'a Archetype, - entity: &'a ArchetypeEntity, - ) -> Self + pub(crate) fn new(archetype: &'a Archetype, entity: &'a ArchetypeEntity) -> Self { - Self { _world: world, archetype, entity } + Self { archetype, entity } } } |