From 4e30c75c25760efc906ffad5b85ede374cd167fc Mon Sep 17 00:00:00 2001 From: Christian Hughes <9044780+ItsDoot@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:52:54 -0500 Subject: [PATCH] address feedback Co-authored-by: Chris Russell <8494645+chescock@users.noreply.github.com> --- crates/bevy_ecs/src/schedule/node.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/bevy_ecs/src/schedule/node.rs b/crates/bevy_ecs/src/schedule/node.rs index 230fb5e0f4..77b8127e3b 100644 --- a/crates/bevy_ecs/src/schedule/node.rs +++ b/crates/bevy_ecs/src/schedule/node.rs @@ -151,9 +151,7 @@ impl Systems { /// /// If the system with the given key does not exist in this container. pub(crate) fn node_mut(&mut self, key: SystemKey) -> &mut SystemNode { - self.nodes - .get_mut(key) - .unwrap_or_else(|| panic!("System with key {:?} does not exist in the schedule", key)) + &mut self.nodes[key] } /// Returns `true` if the system with the given key has conditions.