Relax Sync bound on Local<T> as ExclusiveSystemParam (#7040)
# Objective The type `Local<T>` unnecessarily has the bound `T: Sync` when the local is used in an exclusive system. ## Solution Lift the bound. --- ## Changelog Removed the bound `T: Sync` from `Local<T>` when used as an `ExclusiveSystemParam`.
This commit is contained in:
parent
aaf384ae58
commit
afe0a0650b
@ -48,7 +48,7 @@ impl<'a, P: SystemParam + 'static> ExclusiveSystemParam for &'a mut SystemState<
|
||||
}
|
||||
}
|
||||
|
||||
impl<'_s, T: FromWorld + Send + Sync + 'static> ExclusiveSystemParam for Local<'_s, T> {
|
||||
impl<'_s, T: FromWorld + Send + 'static> ExclusiveSystemParam for Local<'_s, T> {
|
||||
type State = SyncCell<T>;
|
||||
type Item<'s> = Local<'s, T>;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user