summaryrefslogtreecommitdiff
path: root/engine-ecs/src/event
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-11-30 15:16:03 +0100
committerHampusM <hampus@hampusmat.com>2026-11-30 15:16:03 +0100
commit46e021944a6047cc0715ff7034c07a03d073016c (patch)
tree3931c14e4b2db31fe1bb5a5eed9dab4a738cc936 /engine-ecs/src/event
parent98d47caa57a9484d39ee4f8d145255d6f5088eac (diff)
fix(engine-ecs): properly seal trait event::component::EventMatchExt
Diffstat (limited to 'engine-ecs/src/event')
-rw-r--r--engine-ecs/src/event/component.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine-ecs/src/event/component.rs b/engine-ecs/src/event/component.rs
index 894fd95..09bc229 100644
--- a/engine-ecs/src/event/component.rs
+++ b/engine-ecs/src/event/component.rs
@@ -33,7 +33,7 @@ pub struct Changed(Infallible);
impl EventRelation for Changed {}
/// [`EventMatch`] extension trait for component event matches.
-pub trait EventMatchExt<Target>: sealed::Sealed
+pub trait EventMatchExt<Target>: sealed::Sealed<Target>
{
#[must_use]
fn get_entity(&self) -> EntityHandle<'_>;
@@ -90,7 +90,7 @@ where
}
}
-impl<ComponentEventRelation: EventRelation, Target> sealed::Sealed
+impl<ComponentEventRelation: EventRelation, Target> sealed::Sealed<Target>
for EventMatch<'_, Pair<ComponentEventRelation, Target>>
where
Pair<ComponentEventRelation, Target>: Observed,
@@ -99,5 +99,5 @@ where
mod sealed
{
- pub trait Sealed {}
+ pub trait Sealed<T> {}
}