Skip to content

Commit 1f9ed64

Browse files
committed
fix ci
1 parent c0aac3f commit 1f9ed64

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
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: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,24 @@ 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.
16+
1517
- `Schedule::systems`
1618
- `ScheduleGraph::systems`
1719
- `ScheduleGraph::system_sets`
1820
- `ScheduleGraph::conflicting_systems`
21+
1922
- Use the appropriate key types to index these structures rather than bare `usize`s:
23+
2024
- `ScheduleGraph::systems` field
2125
- `ScheduleGraph::system_conditions`
26+
2227
- The following functions now take the type-specific keys. Use pattern matching to extract them from `NodeId`s, if necessary:
28+
2329
- `ScheduleGraph::get_system_at`
2430
- `ScheduleGraph::system_at`
2531
- `ScheduleGraph::get_set_at`
@@ -28,5 +34,6 @@ The following signatures were changed:
2834
- `ScheduleGraph::set_conditions_at`
2935

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

0 commit comments

Comments
 (0)