Skip to content

Commit

Permalink
uwu
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Mar 5, 2022
1 parent b6a647c commit abbf816
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/bevy_ecs/src/system/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Resource> ReadOnlySystemParamFetch for ResState<T> {}

Expand Down

0 comments on commit abbf816

Please sign in to comment.