diff options
Diffstat (limited to 'src/thread_guard.rs')
-rw-r--r-- | src/thread_guard.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread_guard.rs b/src/thread_guard.rs index 91116c4..97c571d 100644 --- a/src/thread_guard.rs +++ b/src/thread_guard.rs @@ -23,7 +23,7 @@ impl<T> ThreadGuard<T> { pub fn borrow(&self) -> Ref<T> { match self.check_thread() { Ok(_) => self.data.borrow(), - Err(_) => { + Err(()) => { panic!( "Data is only accessible on thread {:?} (current is {:?})", self.thread_id, @@ -36,7 +36,7 @@ impl<T> ThreadGuard<T> { pub fn borrow_mut(&self) -> RefMut<T> { match self.check_thread() { Ok(_) => self.data.borrow_mut(), - Err(_) => { + Err(()) => { panic!( "Data is only accessible on thread {:?} (current is {:?})", self.thread_id, |