Skip to content

Commit ecc4006

Browse files
joseph-gioItsDoot
authored andcommitted
Remove an incorrect impl of ReadOnlySystemParam for NonSendMut (bevyengine#7243)
# Objective The trait `ReadOnlySystemParam` is implemented for `NonSendMut`, when it should not be. This mistake was made in bevyengine#6919. ## Solution Remove the incorrect impl.
1 parent 9b14b41 commit ecc4006

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/bevy_ecs/src/system/system_param.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,9 +1012,6 @@ unsafe impl<T: 'static> SystemParam for Option<NonSend<'_, T>> {
10121012
}
10131013
}
10141014

1015-
// SAFETY: Only reads a single non-send resource
1016-
unsafe impl<'a, T: 'static> ReadOnlySystemParam for NonSendMut<'a, T> {}
1017-
10181015
// SAFETY: NonSendMut ComponentId and ArchetypeComponentId access is applied to SystemMeta. If this
10191016
// NonSendMut conflicts with any prior access, a panic will occur.
10201017
unsafe impl<'a, T: 'static> SystemParam for NonSendMut<'a, T> {

0 commit comments

Comments
 (0)