From abbf8168d7789c9635a03bf86a975d38bf722093 Mon Sep 17 00:00:00 2001 From: Ellen Date: Sat, 5 Mar 2022 02:25:48 +0000 Subject: [PATCH] uwu --- crates/bevy_ecs/src/system/system_param.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/bevy_ecs/src/system/system_param.rs b/crates/bevy_ecs/src/system/system_param.rs index f242892b873d35..3f35062187da0c 100644 --- a/crates/bevy_ecs/src/system/system_param.rs +++ b/crates/bevy_ecs/src/system/system_param.rs @@ -207,6 +207,13 @@ pub struct Res<'w, T: Resource> { change_tick: u32, } +impl<'w, T: Resource> Copy for Res<'w, T> {} +impl<'w, T: Resource> Clone for Res<'w, T> { + fn clone(&self) -> Self { + *self + } +} + // SAFE: Res only reads a single World resource unsafe impl ReadOnlySystemParamFetch for ResState {}