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/event | |
parent | c3c96f2d7b63d1d7e55f5a9a85da85444089c2a2 (diff) |
refactor(ecs): fix clippy lints
Diffstat (limited to 'ecs/src/event')
-rw-r--r-- | ecs/src/event/component.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ecs/src/event/component.rs b/ecs/src/event/component.rs index 4628cb1..62e7c4d 100644 --- a/ecs/src/event/component.rs +++ b/ecs/src/event/component.rs @@ -97,20 +97,22 @@ where } } +#[must_use] pub fn create_added_id(component_id: ComponentId) -> Id { Id::new::<Added<ComponentForId>, _>(Some(component_id)) } +#[must_use] pub fn create_removed_id(component_id: ComponentId) -> Id { Id::new::<Removed<ComponentForId>, _>(Some(component_id)) } -pub struct ComponentToAddedEvent; +pub struct TypeTransformComponentsToAddedEvents; impl<ComponentT: Component, Accumulator> - TupleReduceElement<Accumulator, ComponentToAddedEvent> for ComponentT + TupleReduceElement<Accumulator, TypeTransformComponentsToAddedEvents> for ComponentT where Accumulator: TupleWith<Added<Self>>, { |