Skip to content

Commit

Permalink
Improve legibility of RunOnce::run_unsafe param (bevyengine#2181)
Browse files Browse the repository at this point in the history
During PR bevyengine#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 authored and ostwilkens committed Jul 27, 2021
1 parent 3edd29d commit d53767a
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 d53767a

Please sign in to comment.