diff --git a/src/ecs_hooks.rs b/src/ecs_hooks.rs index 72ee020..aa1e735 100644 --- a/src/ecs_hooks.rs +++ b/src/ecs_hooks.rs @@ -123,7 +123,7 @@ where pub fn use_event_reader(cx: &ScopeState) -> EventIterator<'_, E> { // TODO: Register the subscription - let event_reader = cx.use_hook(|| ManualEventReader::default()); + let event_reader = cx.use_hook(ManualEventReader::default); let events = EcsContext::get_world(cx).resource::>(); event_reader.read(events) }