(&mut self)
| 58 | |
| 59 | impl<R: RawMutex, T: ?Sized> Drop for ImmutableMappedMutexGuard<'_, R, T> { |
| 60 | fn drop(&mut self) { |
| 61 | // SAFETY: An ImmutableMappedMutexGuard always holds the lock |
| 62 | unsafe { self.raw.unlock() } |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | impl<R: RawMutex, T: fmt::Debug + ?Sized> fmt::Debug for ImmutableMappedMutexGuard<'_, R, T> { |