@@ -29,19 +29,19 @@ pub struct GhostNode;
29
29
///
30
30
/// A UI root node is either a [`Node`] without a [`ChildOf`], or with only [`GhostNode`] ancestors.
31
31
#[ derive( SystemParam ) ]
32
- pub struct UiRootNodes < ' w , ' s > {
33
- root_node_query : Query < ' w , ' s , Entity , ( With < Node > , Without < ChildOf > ) > ,
34
- root_ghost_node_query : Query < ' w , ' s , Entity , ( With < GhostNode > , Without < ChildOf > ) > ,
35
- all_nodes_query : Query < ' w , ' s , Entity , With < Node > > ,
36
- ui_children : UiChildren < ' w , ' s > ,
32
+ pub struct UiRootNodes < ' w > {
33
+ root_node_query : Query < ' w , ' w , Entity , ( With < Node > , Without < ChildOf > ) > ,
34
+ root_ghost_node_query : Query < ' w , ' w , Entity , ( With < GhostNode > , Without < ChildOf > ) > ,
35
+ all_nodes_query : Query < ' w , ' w , Entity , With < Node > > ,
36
+ ui_children : UiChildren < ' w > ,
37
37
}
38
38
39
39
#[ cfg( not( feature = "ghost_nodes" ) ) ]
40
- pub type UiRootNodes < ' w , ' s > = Query < ' w , ' s , Entity , ( With < Node > , Without < ChildOf > ) > ;
40
+ pub type UiRootNodes < ' w > = Query < ' w , ' w , Entity , ( With < Node > , Without < ChildOf > ) > ;
41
41
42
42
#[ cfg( feature = "ghost_nodes" ) ]
43
- impl < ' w , ' s > UiRootNodes < ' w , ' s > {
44
- pub fn iter ( & ' s self ) -> impl Iterator < Item = Entity > + ' s {
43
+ impl < ' w > UiRootNodes < ' w > {
44
+ pub fn iter ( & ' w self ) -> impl Iterator < Item = Entity > + ' w {
45
45
self . root_node_query
46
46
. iter ( )
47
47
. chain ( self . root_ghost_node_query . iter ( ) . flat_map ( |root_ghost| {
@@ -54,17 +54,17 @@ impl<'w, 's> UiRootNodes<'w, 's> {
54
54
#[ cfg( feature = "ghost_nodes" ) ]
55
55
/// System param that gives access to UI children utilities, skipping over [`GhostNode`].
56
56
#[ derive( SystemParam ) ]
57
- pub struct UiChildren < ' w , ' s > {
57
+ pub struct UiChildren < ' w > {
58
58
ui_children_query : Query <
59
59
' w ,
60
- ' s ,
60
+ ' w ,
61
61
( Option < & ' static Children > , Has < GhostNode > ) ,
62
62
Or < ( With < Node > , With < GhostNode > ) > ,
63
63
> ,
64
- changed_children_query : Query < ' w , ' s , Entity , Changed < Children > > ,
65
- children_query : Query < ' w , ' s , & ' static Children > ,
66
- ghost_nodes_query : Query < ' w , ' s , Entity , With < GhostNode > > ,
67
- parents_query : Query < ' w , ' s , & ' static ChildOf > ,
64
+ changed_children_query : Query < ' w , ' w , Entity , Changed < Children > > ,
65
+ children_query : Query < ' w , ' w , & ' static Children > ,
66
+ ghost_nodes_query : Query < ' w , ' w , Entity , With < GhostNode > > ,
67
+ parents_query : Query < ' w , ' w , & ' static ChildOf > ,
68
68
}
69
69
70
70
#[ cfg( not( feature = "ghost_nodes" ) ) ]
@@ -85,7 +85,7 @@ impl<'w> UiChildren<'w> {
85
85
/// # Performance
86
86
///
87
87
/// This iterator allocates if the `entity` node has more than 8 children (including ghost nodes).
88
- pub fn iter_ui_children ( & ' w self , entity : Entity ) -> UiChildrenIter < ' w , ' s > {
88
+ pub fn iter_ui_children ( & ' w self , entity : Entity ) -> UiChildrenIter < ' w > {
89
89
UiChildrenIter {
90
90
stack : self
91
91
. ui_children_query
@@ -105,7 +105,7 @@ impl<'w> UiChildren<'w> {
105
105
}
106
106
107
107
/// Iterates the [`GhostNode`]s between this entity and its UI children.
108
- pub fn iter_ghost_nodes ( & ' w self , entity : Entity ) -> Box < dyn Iterator < Item = Entity > + ' s > {
108
+ pub fn iter_ghost_nodes ( & ' w self , entity : Entity ) -> Box < dyn Iterator < Item = Entity > + ' w > {
109
109
Box :: new (
110
110
self . children_query
111
111
. get ( entity)
0 commit comments