From ea39649d4da9a2993cecf2289e38d31854a394da Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Sat, 10 Apr 2021 13:30:15 +0200 Subject: [PATCH] Update crates/bevy_ecs/src/schedule/state.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alexander Krivács Schrøder --- crates/bevy_ecs/src/schedule/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/schedule/state.rs b/crates/bevy_ecs/src/schedule/state.rs index bbecf1e2161f9d..ac7b1ff5cc19e8 100644 --- a/crates/bevy_ecs/src/schedule/state.rs +++ b/crates/bevy_ecs/src/schedule/state.rs @@ -279,7 +279,7 @@ impl State { } pub fn inactives(&self) -> &[T] { - self.stack.split_last().map(|(_last, rest)| rest).unwrap() + self.stack.split_last().map(|(_, rest)| rest).unwrap() } }