Skip to content

Commit 260d9da

Browse files
committed
Make reflect_unchecked_mut unsafe
1 parent eb129b7 commit 260d9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/reflect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub struct ReflectComponentFns {
5656
/// Function pointer implementing [`ReflectComponent::reflect_mut()`].
5757
pub reflect_mut: for<'a> fn(&'a mut EntityMut<'a>) -> Option<Mut<'a, dyn Reflect>>,
5858
/// Function pointer implementing [`ReflectComponent::reflect_unchecked_mut()`].
59-
pub reflect_unchecked_mut: fn(&World, Entity) -> Option<Mut<dyn Reflect>>,
59+
pub reflect_unchecked_mut: unsafe fn(&World, Entity) -> Option<Mut<dyn Reflect>>,
6060
/// Function pointer implementing [`ReflectComponent::copy()`].
6161
pub copy: fn(&World, &mut World, Entity, Entity),
6262
}

0 commit comments

Comments
 (0)