Skip to content

Commit f9f59b8

Browse files
committed
migration
1 parent 5901c9e commit f9f59b8

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

crates/bevy_input_focus/src/tab_navigation.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ mod tests {
395395
let mut system_state: SystemState<TabNavigation> = SystemState::new(world);
396396
let tab_navigation = system_state.get(world);
397397
assert_eq!(tab_navigation.tabgroup_query.iter().count(), 1);
398-
assert_eq!(tab_navigation.tabindex_query.iter().count(), 2);
399398

400399
let next_entity =
401400
tab_navigation.navigate(&InputFocus::from_entity(tab_entity_1), NavAction::Next);
@@ -428,7 +427,6 @@ mod tests {
428427
let mut system_state: SystemState<TabNavigation> = SystemState::new(world);
429428
let tab_navigation = system_state.get(world);
430429
assert_eq!(tab_navigation.tabgroup_query.iter().count(), 2);
431-
assert_eq!(tab_navigation.tabindex_query.iter().count(), 4);
432430

433431
let next_entity =
434432
tab_navigation.navigate(&InputFocus::from_entity(tab_entity_1), NavAction::Next);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
```

0 commit comments

Comments
 (0)