From 8e022a92e0d6679dcf6764b1e1324764bb9efbb7 Mon Sep 17 00:00:00 2001 From: Mike Hsu Date: Mon, 28 Aug 2023 12:02:28 -0700 Subject: [PATCH] fix new errors --- crates/bevy_ecs/src/system/mod.rs | 2 +- crates/bevy_ecs/src/system/system_param.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/system/mod.rs b/crates/bevy_ecs/src/system/mod.rs index f127d7b478c16..fd4b3027c4b90 100644 --- a/crates/bevy_ecs/src/system/mod.rs +++ b/crates/bevy_ecs/src/system/mod.rs @@ -170,7 +170,7 @@ pub trait IntoSystem: Sized { /// /// ``` /// # use bevy_ecs::prelude::*; - /// # let mut schedule = Schedule::new(); + /// # let mut schedule = Schedule::default(); /// // Ignores the output of a system that may fail. /// schedule.add_systems(my_system.map(std::mem::drop)); /// # let mut world = World::new(); diff --git a/crates/bevy_ecs/src/system/system_param.rs b/crates/bevy_ecs/src/system/system_param.rs index 22af08c1c0092..e5343002df95a 100644 --- a/crates/bevy_ecs/src/system/system_param.rs +++ b/crates/bevy_ecs/src/system/system_param.rs @@ -1735,7 +1735,7 @@ mod tests { } let mut world = World::new(); - let mut schedule = crate::schedule::Schedule::new(); + let mut schedule = crate::schedule::Schedule::default(); schedule.add_systems(non_sync_system); schedule.run(&mut world); }