We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f01bd commit 56692aeCopy full SHA for 56692ae
src/synch/async.rs
@@ -1,3 +1,5 @@
1
+#![allow(dead_code)]
2
+
3
use core::cell::UnsafeCell;
4
use core::future;
5
use core::mem::MaybeUninit;
@@ -105,13 +107,13 @@ impl<T> AsyncInterruptMutex<T> {
105
107
106
108
impl<'a, T: ?Sized> Deref for AsyncInterruptMutexGuard<'a, T> {
109
type Target = T;
- fn deref<'b>(&'b self) -> &'b T {
110
+ fn deref(&self) -> &T {
111
&*self.data
112
}
113
114
115
impl<'a, T: ?Sized> DerefMut for AsyncInterruptMutexGuard<'a, T> {
- fn deref_mut<'b>(&'b mut self) -> &'b mut T {
116
+ fn deref_mut(&mut self) -> &mut T {
117
&mut *self.data
118
119
0 commit comments