Skip to content

Commit e20ca25

Browse files
make unsafe fn unsafe
1 parent ed140f5 commit e20ca25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/bevy_ecs/src/world/interior_mutable_world.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,10 @@ impl<'w> InteriorMutableEntityRef<'w> {
468468
/// - the [`InteriorMutableEntityRef`] has permission to access the component
469469
/// - no other mutable references to the component exist at the same time
470470
#[inline]
471-
pub fn get_change_ticks_by_id(&self, component_id: ComponentId) -> Option<ComponentTicks> {
471+
pub unsafe fn get_change_ticks_by_id(
472+
&self,
473+
component_id: ComponentId,
474+
) -> Option<ComponentTicks> {
472475
let info = self.world.components().get_info(component_id)?;
473476
// SAFETY:
474477
// - entity location and entity is valid

0 commit comments

Comments
 (0)