Skip to content

Commit 56692ae

Browse files
committed
remove clippy warnings
1 parent f7f01bd commit 56692ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/synch/async.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(dead_code)]
2+
13
use core::cell::UnsafeCell;
24
use core::future;
35
use core::mem::MaybeUninit;
@@ -105,13 +107,13 @@ impl<T> AsyncInterruptMutex<T> {
105107

106108
impl<'a, T: ?Sized> Deref for AsyncInterruptMutexGuard<'a, T> {
107109
type Target = T;
108-
fn deref<'b>(&'b self) -> &'b T {
110+
fn deref(&self) -> &T {
109111
&*self.data
110112
}
111113
}
112114

113115
impl<'a, T: ?Sized> DerefMut for AsyncInterruptMutexGuard<'a, T> {
114-
fn deref_mut<'b>(&'b mut self) -> &'b mut T {
116+
fn deref_mut(&mut self) -> &mut T {
115117
&mut *self.data
116118
}
117119
}

0 commit comments

Comments
 (0)