From 1f0988be87f24042a3ceab4ef85473ccd4fda745 Mon Sep 17 00:00:00 2001 From: Federico Rinaldi Date: Tue, 18 May 2021 00:10:17 +0000 Subject: [PATCH] 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. --- crates/bevy_ecs/src/schedule/run_criteria.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/schedule/run_criteria.rs b/crates/bevy_ecs/src/schedule/run_criteria.rs index 9790ba76951c0..5ea8fab4d1e5f 100644 --- a/crates/bevy_ecs/src/schedule/run_criteria.rs +++ b/crates/bevy_ecs/src/schedule/run_criteria.rs @@ -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 {