From 6bd692c8385722174f626afb29b055bfb7e952b3 Mon Sep 17 00:00:00 2001 From: Jason Heath Date: Wed, 5 Jun 2024 18:45:42 +0000 Subject: [PATCH] fixed clippy warnings Signed-off-by: Jason Heath --- src/types/refs.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/types/refs.rs b/src/types/refs.rs index d16fed4..81f24c7 100644 --- a/src/types/refs.rs +++ b/src/types/refs.rs @@ -12,13 +12,13 @@ unsafe impl<'a, T: ?Sized> StableAddress for StableMutexGuard<'a, T> {} impl Deref for StableMutexGuard<'_, T> { type Target = T; fn deref(&self) -> &T { - &*self.0 + &self.0 } } impl DerefMut for StableMutexGuard<'_, T> { fn deref_mut(&mut self) -> &mut T { - &mut *self.0 + &mut self.0 } } @@ -32,7 +32,7 @@ impl<'a, T: ?Sized> Deref for ClientRef<'a, T> { type Target = T; fn deref(&self) -> &T { - &*self.0 + &self.0 } } @@ -48,12 +48,12 @@ impl<'a, T: ?Sized> Deref for ClientRefMut<'a, T> { type Target = T; fn deref(&self) -> &T { - &*self.0 + &self.0 } } impl<'a, T: ?Sized> DerefMut for ClientRefMut<'a, T> { fn deref_mut(&mut self) -> &mut T { - &mut *self.0 + &mut self.0 } }