diff options
author | HampusM <hampus@hampusmat.com> | 2024-04-10 19:51:46 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-04-10 19:51:46 +0200 |
commit | c70e06c6d879208eb2822f6207ea7b29d47c2087 (patch) | |
tree | 06b5b7ae8fbf69d6041fff1c576d7610ff6fba6a /ecs/src/event.rs | |
parent | 9d8c73dd2671131929967214433dae5479e95b5b (diff) |
chore(ecs): remove Event trait id method & take events by value
Diffstat (limited to 'ecs/src/event.rs')
-rw-r--r-- | ecs/src/event.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ecs/src/event.rs b/ecs/src/event.rs index 9545318..6a4c3a8 100644 --- a/ecs/src/event.rs +++ b/ecs/src/event.rs @@ -4,10 +4,7 @@ use std::hash::Hash; use seq_macro::seq; -pub trait Event: Debug + 'static -{ - fn id(&self) -> Id; -} +pub trait Event: Debug + 'static {} /// The ID of a [`Event`]. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |