Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Dec 7, 2024
1 parent aa5a582 commit a161aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct Atmosphere<'w, T: Atmospheric> {
// SAFETY: Res only reads a single World resource
unsafe impl<T: Atmospheric> ReadOnlySystemParam for Atmosphere<'_, T> {}

impl<'w, T: Atmospheric> Deref for Atmosphere<'w, T> {
impl<T: Atmospheric> Deref for Atmosphere<'_, T> {
type Target = T;

fn deref(&self) -> &Self::Target {
Expand Down Expand Up @@ -63,15 +63,15 @@ pub struct AtmosphereMut<'w, T: Atmospheric> {
value: &'w mut T,
}

impl<'w, T: Atmospheric> Deref for AtmosphereMut<'w, T> {
impl<T: Atmospheric> Deref for AtmosphereMut<'_, T> {
type Target = T;

fn deref(&self) -> &Self::Target {
self.value
}
}

impl<'w, T: Atmospheric> DerefMut for AtmosphereMut<'w, T> {
impl<T: Atmospheric> DerefMut for AtmosphereMut<'_, T> {
fn deref_mut(&mut self) -> &mut Self::Target {
self.value
}
Expand Down

0 comments on commit a161aab

Please sign in to comment.