Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/bevy_ecs/src/system/schedule_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ impl<S: System<In = ()>> System for InfallibleSystemWrapper<S> {
self.0.name()
}

fn type_id(&self) -> core::any::TypeId {
Copy link
Contributor

@SpecificProtagonist SpecificProtagonist Apr 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fn type_id(&self) -> core::any::TypeId {
/// Type id of the wrapped system.
fn wrapped_type_id(&self) -> core::any::TypeId {

Let's not shadow <InfallibleSystemWrapper as Any>::type_id with a different meaning (previously using the same name was fine, as it always returned the same result).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we rename the method, I'd vote for system_type because not every System is a wrapper. It also aligns with SystemSet::system_type

self.0.type_id()
}

#[inline]
fn component_access(&self) -> &Access<ComponentId> {
self.0.component_access()
Expand Down