Skip to content

Commit

Permalink
remove clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed May 23, 2024
1 parent f7f01bd commit 56692ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/synch/async.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(dead_code)]

use core::cell::UnsafeCell;
use core::future;
use core::mem::MaybeUninit;
Expand Down Expand Up @@ -105,13 +107,13 @@ impl<T> AsyncInterruptMutex<T> {

impl<'a, T: ?Sized> Deref for AsyncInterruptMutexGuard<'a, T> {
type Target = T;
fn deref<'b>(&'b self) -> &'b T {
fn deref(&self) -> &T {
&*self.data
}
}

impl<'a, T: ?Sized> DerefMut for AsyncInterruptMutexGuard<'a, T> {
fn deref_mut<'b>(&'b mut self) -> &'b mut T {
fn deref_mut(&mut self) -> &mut T {
&mut *self.data
}
}
Expand Down

0 comments on commit 56692ae

Please sign in to comment.