Skip to content

Commit a91e7de

Browse files
committed
fix ci
1 parent c0aac3f commit a91e7de

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

examples/games/stepping.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ fn build_ui(
139139
// Add an entry to our systems list so we can find where to draw
140140
// the cursor when the stepping cursor is at this system
141141
// we add plus 1 to account for the empty root span
142-
state.systems.push((*label, node_id, text_spans.len() + 1));
142+
state
143+
.systems
144+
.push((*label, NodeId::System(node_id), text_spans.len() + 1));
143145

144146
// Add a text section for displaying the cursor for this system
145147
text_spans.push((
@@ -158,7 +160,7 @@ fn build_ui(
158160
}
159161

160162
for (label, node) in always_run.drain(..) {
161-
stepping.always_run_node(label, node);
163+
stepping.always_run_node(label, NodeId::System(node));
162164
}
163165

164166
commands.spawn((

release-content/migration-guides/schedule_slotmaps.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,27 @@ In order to support removing systems from schedules, `Vec`s storing `System`s an
88
reusing indices. The maps are respectively keyed by `SystemKey`s and `SystemSetKey`s.
99

1010
The following signatures were changed:
11+
1112
- `NodeId::System`: Now stores a `SystemKey` instead of a plain `usize`
1213
- `NodeId::Set`: Now stores a `SystemSetKey` instead of a plain `usize`
1314
- `ScheduleBuildPass::collapse_set`: Now takes the type-specific keys. Wrap them back into a `NodeId` if necessary.
1415
- The following functions now return the type-specific keys. Wrap them back into a `NodeId` if necessary.
15-
- `Schedule::systems`
16-
- `ScheduleGraph::systems`
17-
- `ScheduleGraph::system_sets`
18-
- `ScheduleGraph::conflicting_systems`
16+
- `Schedule::systems`
17+
- `ScheduleGraph::systems`
18+
- `ScheduleGraph::system_sets`
19+
- `ScheduleGraph::conflicting_systems`
1920
- Use the appropriate key types to index these structures rather than bare `usize`s:
20-
- `ScheduleGraph::systems` field
21-
- `ScheduleGraph::system_conditions`
21+
- `ScheduleGraph::systems` field
22+
- `ScheduleGraph::system_conditions`
2223
- The following functions now take the type-specific keys. Use pattern matching to extract them from `NodeId`s, if necessary:
23-
- `ScheduleGraph::get_system_at`
24-
- `ScheduleGraph::system_at`
25-
- `ScheduleGraph::get_set_at`
26-
- `ScheduleGraph::set_at`
27-
- `ScheduleGraph::get_set_conditions_at`
28-
- `ScheduleGraph::set_conditions_at`
24+
- `ScheduleGraph::get_system_at`
25+
- `ScheduleGraph::system_at`
26+
- `ScheduleGraph::get_set_at`
27+
- `ScheduleGraph::set_at`
28+
- `ScheduleGraph::get_set_conditions_at`
29+
- `ScheduleGraph::set_conditions_at`
2930

3031
The following functions were removed:
32+
3133
- `NodeId::index`: You should match on and use the `SystemKey` and `SystemSetKey` instead.
32-
- `NodeId::cmp`: Use the `PartialOrd` and `Ord` traits instead.
34+
- `NodeId::cmp`: Use the `PartialOrd` and `Ord` traits instead.

0 commit comments

Comments
 (0)