From 58f29444ac234c285ce0e3a729ade2b52a303f58 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 21 Aug 2024 20:18:37 +0200 Subject: refactor(ecs): fix clippy lints --- ecs/src/event/component.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ecs/src/event') 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::, _>(Some(component_id)) } +#[must_use] pub fn create_removed_id(component_id: ComponentId) -> Id { Id::new::, _>(Some(component_id)) } -pub struct ComponentToAddedEvent; +pub struct TypeTransformComponentsToAddedEvents; impl - TupleReduceElement for ComponentT + TupleReduceElement for ComponentT where Accumulator: TupleWith>, { -- cgit v1.2.3-18-g5258