summaryrefslogtreecommitdiff
path: root/ecs/src/event.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-06 14:17:30 +0200
committerHampusM <hampus@hampusmat.com>2024-04-06 14:17:30 +0200
commit97f973d685baf389dcde08044dd3dfb7ba556050 (patch)
tree63e67bf212aabd653b5344fd773212e11afd4ae9 /ecs/src/event.rs
parent407612918489bfa642e2d653edbb54272b3f00f5 (diff)
refactor(ecs): fix Clippy lints
Diffstat (limited to 'ecs/src/event.rs')
-rw-r--r--ecs/src/event.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ecs/src/event.rs b/ecs/src/event.rs
index 01d9d80..9545318 100644
--- a/ecs/src/event.rs
+++ b/ecs/src/event.rs
@@ -19,6 +19,7 @@ pub struct Id
impl Id
{
/// Returns the id of a [`Event`];
+ #[must_use]
pub fn of<EventT: Event>() -> Self
{
Self { inner: TypeId::of::<EventT>() }