mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Remove an incorrect impl of ReadOnlySystemParam
for NonSendMut
(#7243)
# Objective The trait `ReadOnlySystemParam` is implemented for `NonSendMut`, when it should not be. This mistake was made in #6919. ## Solution Remove the incorrect impl.
This commit is contained in:
parent
684f07595f
commit
0efe66b081
1 changed files with 0 additions and 3 deletions
|
@ -1012,9 +1012,6 @@ unsafe impl<T: 'static> SystemParam for Option<NonSend<'_, T>> {
|
|||
}
|
||||
}
|
||||
|
||||
// SAFETY: Only reads a single non-send resource
|
||||
unsafe impl<'a, T: 'static> ReadOnlySystemParam for NonSendMut<'a, T> {}
|
||||
|
||||
// SAFETY: NonSendMut ComponentId and ArchetypeComponentId access is applied to SystemMeta. If this
|
||||
// NonSendMut conflicts with any prior access, a panic will occur.
|
||||
unsafe impl<'a, T: 'static> SystemParam for NonSendMut<'a, T> {
|
||||
|
|
Loading…
Reference in a new issue