mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +00:00
Fix a typo in CombinatorSystem
(#7823)
# Objective I made a typo in #7605. ## Solution Fix it.
This commit is contained in:
parent
be22569db7
commit
15c55a12ff
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ where
|
|||
input,
|
||||
// SAFETY: The world accesses for both underlying systems have been registered,
|
||||
// so the caller will guarantee that no other systems will conflict with `a` or `b`.
|
||||
// Since these closures are `!Send + !Synd + !'static`, they can never be called
|
||||
// Since these closures are `!Send + !Sync + !'static`, they can never be called
|
||||
// in parallel, so their world accesses will not conflict with each other.
|
||||
|input| self.a.run_unsafe(input, world),
|
||||
|input| self.b.run_unsafe(input, world),
|
||||
|
@ -172,7 +172,7 @@ where
|
|||
let world: &'w UnsafeCell<World> = unsafe { std::mem::transmute(world) };
|
||||
Func::combine(
|
||||
input,
|
||||
// SAFETY: Since these closures are `!Send + !Synd + !'static`, they can never
|
||||
// SAFETY: Since these closures are `!Send + !Sync + !'static`, they can never
|
||||
// be called in parallel. Since mutable access to `world` only exists within
|
||||
// the scope of either closure, we can be sure they will never alias one another.
|
||||
|input| self.a.run(input, unsafe { world.deref_mut() }),
|
||||
|
|
Loading…
Reference in a new issue