File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
crates/bevy_input_focus/src
release-content/migration-guides Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,6 @@ mod tests {
395
395
let mut system_state: SystemState < TabNavigation > = SystemState :: new ( world) ;
396
396
let tab_navigation = system_state. get ( world) ;
397
397
assert_eq ! ( tab_navigation. tabgroup_query. iter( ) . count( ) , 1 ) ;
398
- assert_eq ! ( tab_navigation. tabindex_query. iter( ) . count( ) , 2 ) ;
399
398
400
399
let next_entity =
401
400
tab_navigation. navigate ( & InputFocus :: from_entity ( tab_entity_1) , NavAction :: Next ) ;
@@ -428,7 +427,6 @@ mod tests {
428
427
let mut system_state: SystemState < TabNavigation > = SystemState :: new ( world) ;
429
428
let tab_navigation = system_state. get ( world) ;
430
429
assert_eq ! ( tab_navigation. tabgroup_query. iter( ) . count( ) , 2 ) ;
431
- assert_eq ! ( tab_navigation. tabindex_query. iter( ) . count( ) , 4 ) ;
432
430
433
431
let next_entity =
434
432
tab_navigation. navigate ( & InputFocus :: from_entity ( tab_entity_1) , NavAction :: Next ) ;
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Query lifetime change
3
+ pull_requests : [18860]
4
+ ---
5
+ Query lifetimes have been change if you are deriving ` SystemParam ` with ` Query ` you will need to update.
6
+
7
+ ``` diff
8
+ # [derive(SystemParam)]
9
+ - - struct MyParam<'w, 's> {
10
+ - - query: Query<'w, 's, Entity>
11
+ - - }
12
+ + + struct MyParam<'w> {
13
+ + + query: Query<'w, 'w, Entity>
14
+ + + }
15
+
16
+ ```
You can’t perform that action at this time.
0 commit comments