From 6476144a3429fe1d6ff9e17088dc07c8b1e1867d Mon Sep 17 00:00:00 2001 From: JoJoJet <21144246+JoJoJet@users.noreply.github.com> Date: Wed, 22 Feb 2023 08:44:10 -0500 Subject: [PATCH] make boxed conditions read-only --- crates/bevy_ecs/src/schedule/condition.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/schedule/condition.rs b/crates/bevy_ecs/src/schedule/condition.rs index 1ecf637f6560c..225c54095f520 100644 --- a/crates/bevy_ecs/src/schedule/condition.rs +++ b/crates/bevy_ecs/src/schedule/condition.rs @@ -1,8 +1,8 @@ use std::borrow::Cow; -use crate::system::{BoxedSystem, CombinatorSystem, Combine, IntoSystem, System}; +use crate::system::{CombinatorSystem, Combine, IntoSystem, ReadOnlySystem, System}; -pub type BoxedCondition = BoxedSystem<(), bool>; +pub type BoxedCondition = Box>; /// A system that determines if one or more scheduled systems should run. ///