diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-21 20:18:37 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-21 20:18:37 +0200 |
commit | 58f29444ac234c285ce0e3a729ade2b52a303f58 (patch) | |
tree | 03bb210d62bf98acc1ee30ce9df1344d8239f7c6 /ecs/src/extension.rs | |
parent | c3c96f2d7b63d1d7e55f5a9a85da85444089c2a2 (diff) |
refactor(ecs): fix clippy lints
Diffstat (limited to 'ecs/src/extension.rs')
-rw-r--r-- | ecs/src/extension.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/extension.rs b/ecs/src/extension.rs index 99320cb..a945d89 100644 --- a/ecs/src/extension.rs +++ b/ecs/src/extension.rs @@ -1,5 +1,5 @@ use crate::component::Sequence as ComponentSequence; -use crate::event::component::ComponentToAddedEvent; +use crate::event::component::TypeTransformComponentsToAddedEvents; use crate::event::{Event, Sequence as EventSequence}; use crate::sole::Sole; use crate::system::System; @@ -40,7 +40,7 @@ impl<'world> Collector<'world> /// Adds a entity to the [`World`]. pub fn add_entity<Comps>(&mut self, components: Comps) where - Comps: ComponentSequence + TupleReduce<ComponentToAddedEvent>, + Comps: ComponentSequence + TupleReduce<TypeTransformComponentsToAddedEvents>, Comps::Out: EventSequence, { self.world.create_entity(components); |