diff options
Diffstat (limited to 'src/interrupt.rs')
-rw-r--r-- | src/interrupt.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs index 6c84301..e11fdc3 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -21,7 +21,10 @@ impl<T> Mutex<T> { } /// Mutably borrows the data for the duration of the critical section - pub fn borrow_mut<'cs>(&self, _ctxt: &'cs mut CriticalSection) -> &'cs mut T { + pub fn borrow_mut<'cs>( + &self, + _ctxt: &'cs mut CriticalSection, + ) -> &'cs mut T { unsafe { &mut *self.inner.get() } } } |