address feedback

Co-authored-by: Chris Russell <8494645+chescock@users.noreply.github.com>
This commit is contained in:
Christian Hughes 2025-07-14 18:52:54 -05:00 committed by GitHub
parent d43a7cb8b3
commit 4e30c75c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.