diff --git a/src/threadsafe.rs b/src/threadsafe.rs index 046ce94..20b3cea 100644 --- a/src/threadsafe.rs +++ b/src/threadsafe.rs @@ -17,12 +17,16 @@ impl MyRefCell { /// Borrow a `MyRef` to the inner value. pub fn borrow(&self) -> ::MyRef { - self.0.lock().expect("bar") + self.0 + .lock() + .expect("failed to acquire lock while trying to borrow") } /// Borrow a mutable `MyRef` to the inner value. pub fn borrow_mut(&self) -> ::MyRef { - self.0.lock().expect("bar") + self.0 + .lock() + .expect("failed to acquire lock while trying to borrow mutably") } }