diff options
Diffstat (limited to 'ecs/src/event.rs')
-rw-r--r-- | ecs/src/event.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ecs/src/event.rs b/ecs/src/event.rs index 2934b82..a0b2487 100644 --- a/ecs/src/event.rs +++ b/ecs/src/event.rs @@ -2,7 +2,6 @@ use crate::lock::Lock; use crate::pair::Pair; use crate::uid::{Kind as UidKind, Uid}; use crate::util::VecExt; -use crate::World; pub mod component; @@ -36,9 +35,9 @@ impl<'world> Submitter<'world> new_events_lock.push_event_match(event, match_id); } - pub(crate) fn new(world: &'world World) -> Self + pub(crate) fn new(new_events: &'world Lock<NewEvents>) -> Self { - Self { new_events: &world.data.new_events } + Self { new_events } } } |