diff options
| author | Oliver Rockstedt <[email protected]> | 2024-10-07 18:05:15 +0200 |
|---|---|---|
| committer | Oliver Rockstedt <[email protected]> | 2024-10-07 18:05:15 +0200 |
| commit | bf60b239e87faa0b9905a42013d8ae9a9f4162ea (patch) | |
| tree | 6419fd6a02b7a31778a2400f41d1b740be3fcbfb /embassy-sync/src/blocking_mutex | |
| parent | 42815e944af09f7de6278483caf0fb7e65ab1d1d (diff) | |
embassy-sync: fixed some clippy warnings
Diffstat (limited to 'embassy-sync/src/blocking_mutex')
| -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 } |
