Skip to content

Commit 646f255

Browse files
committed
zephyr: sync: Remove unsafe block from unlock
Now that `sys::Mutex::unlock` has lost its `unsafe`, we don't need an unsafe block for it. Signed-off-by: David Brown <[email protected]>
1 parent 94fbbb8 commit 646f255

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

zephyr/src/sync.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ impl<T: ?Sized> DerefMut for MutexGuard<'_, T> {
188188
impl<T: ?Sized> Drop for MutexGuard<'_, T> {
189189
#[inline]
190190
fn drop(&mut self) {
191-
unsafe {
192-
self.lock.inner.unlock().unwrap();
193-
}
191+
self.lock.inner.unlock().unwrap();
194192
}
195193
}
196194

0 commit comments

Comments
 (0)