Skip to content

Commit 1f0988b

Browse files
committed
Improve legibility of RunOnce::run_unsafe param (#2181)
During PR #2046 @cart suggested that the `(): ()` notation is less legible than `_input: ()`. The first notation still managed to slip in though. This PR applies the second writing.
1 parent a81fb7a commit 1f0988b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/schedule/run_criteria.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ impl System for RunOnce {
406406
true
407407
}
408408

409-
unsafe fn run_unsafe(&mut self, (): (), _world: &World) -> ShouldRun {
409+
unsafe fn run_unsafe(&mut self, _input: (), _world: &World) -> ShouldRun {
410410
if self.ran {
411411
ShouldRun::No
412412
} else {

0 commit comments

Comments
 (0)