Skip to content

Commit

Permalink
Improve legibility of RunOnce::run_unsafe param (#2181)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nilirad committed May 18, 2021
1 parent a81fb7a commit 1f0988b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/run_criteria.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl System for RunOnce {
true
}

unsafe fn run_unsafe(&mut self, (): (), _world: &World) -> ShouldRun {
unsafe fn run_unsafe(&mut self, _input: (), _world: &World) -> ShouldRun {
if self.ran {
ShouldRun::No
} else {
Expand Down

0 comments on commit 1f0988b

Please sign in to comment.