From 9bcbd0bb8101aa04b1f34ea902dd71a12148a89b Mon Sep 17 00:00:00 2001 From: JMS55 <47158642+JMS55@users.noreply.github.com> Date: Thu, 7 Dec 2023 13:54:11 -0800 Subject: [PATCH] Misc --- src/hooks.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hooks.rs b/src/hooks.rs index 782ea33..3d00a89 100644 --- a/src/hooks.rs +++ b/src/hooks.rs @@ -14,11 +14,11 @@ pub trait DioxusUiHooks { fn use_resource<'a, T: Resource>(&'a self) -> &'a T; - fn use_query<'a, Q>(&'a self) -> DioxusUiQuery + fn use_query<'a, Q>(&'a self) -> DioxusUiQuery<'a, Q, ()> where Q: ReadOnlyWorldQueryData; - fn use_query_filtered<'a, Q, F>(&'a self) -> DioxusUiQuery + fn use_query_filtered<'a, Q, F>(&'a self) -> DioxusUiQuery<'a, Q, F> where Q: ReadOnlyWorldQueryData, F: WorldQueryFilter; @@ -37,14 +37,14 @@ impl DioxusUiHooks for ScopeState { EcsContext::get_world(self).resource() } - fn use_query<'a, Q>(&'a self) -> DioxusUiQuery + fn use_query<'a, Q>(&'a self) -> DioxusUiQuery<'a, Q, ()> where Q: ReadOnlyWorldQueryData, { Self::use_query_filtered(self) } - fn use_query_filtered<'a, Q, F>(&'a self) -> DioxusUiQuery + fn use_query_filtered<'a, Q, F>(&'a self) -> DioxusUiQuery<'a, Q, F> where Q: ReadOnlyWorldQueryData, F: WorldQueryFilter,