From 55a680117b8ddee63c564d51f1abcae7cde81e60 Mon Sep 17 00:00:00 2001 From: Robert Dodd Date: Wed, 3 Jan 2024 08:53:45 +1100 Subject: [PATCH] Remove redundant closure --- src/ecs_hooks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }