diff options
Diffstat (limited to 'embassy-sync/src/blocking_mutex/mod.rs')
| -rw-r--r-- | embassy-sync/src/blocking_mutex/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-sync/src/blocking_mutex/mod.rs b/embassy-sync/src/blocking_mutex/mod.rs index 8a4a4c642..beafdb43d 100644 --- a/embassy-sync/src/blocking_mutex/mod.rs +++ b/embassy-sync/src/blocking_mutex/mod.rs | |||
| @@ -104,6 +104,7 @@ impl<T> Mutex<raw::CriticalSectionRawMutex, T> { | |||
| 104 | 104 | ||
| 105 | impl<T> Mutex<raw::NoopRawMutex, T> { | 105 | impl<T> Mutex<raw::NoopRawMutex, T> { |
| 106 | /// Borrows the data | 106 | /// Borrows the data |
| 107 | #[allow(clippy::should_implement_trait)] | ||
| 107 | pub fn borrow(&self) -> &T { | 108 | pub fn borrow(&self) -> &T { |
| 108 | let ptr = self.data.get() as *const T; | 109 | let ptr = self.data.get() as *const T; |
| 109 | unsafe { &*ptr } | 110 | unsafe { &*ptr } |
