From 299bd3775274a250e9db48251111796e491e92ff Mon Sep 17 00:00:00 2001 From: JoJoJet <21144246+JoJoJet@users.noreply.github.com> Date: Sat, 28 Jan 2023 09:28:47 +0000 Subject: [PATCH] Add `Ref` to the prelude (#7392) # Objective Add the change-detection wrapper type `Ref` (originally added in #7097) to `bevy_ecs::prelude`. --- crates/bevy_ecs/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/lib.rs b/crates/bevy_ecs/src/lib.rs index a85474f7d084c..8ccffe54293a6 100644 --- a/crates/bevy_ecs/src/lib.rs +++ b/crates/bevy_ecs/src/lib.rs @@ -29,7 +29,7 @@ pub mod prelude { #[doc(hidden)] pub use crate::{ bundle::Bundle, - change_detection::{DetectChanges, DetectChangesMut}, + change_detection::{DetectChanges, DetectChangesMut, Mut, Ref}, component::Component, entity::Entity, event::{EventReader, EventWriter, Events}, @@ -44,7 +44,7 @@ pub mod prelude { Commands, In, IntoPipeSystem, IntoSystem, Local, NonSend, NonSendMut, ParallelCommands, ParamSet, Query, RemovedComponents, Res, ResMut, Resource, System, SystemParamFunction, }, - world::{FromWorld, Mut, World}, + world::{FromWorld, World}, }; }