From aef38fae9ca8375eb7b16b6bcfa50520b3378f97 Mon Sep 17 00:00:00 2001 From: Steven Normore Date: Wed, 24 Apr 2024 10:17:06 -0400 Subject: [PATCH] chore: clean up spacing --- src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4cc4647..2378431 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -183,6 +183,7 @@ impl Drop for OwnedRefMut { borrow_state.mutable_borrowed = false; } } + #[cfg(test)] mod tests { use std::panic::{self, AssertUnwindSafe}; @@ -261,10 +262,7 @@ mod tests { let mut b1 = cell.borrow_mut(); *b1 = 40; } - assert!( - cell.try_borrow_mut().is_some(), - "Should be able to re-borrow mutably" - ); + assert!(cell.try_borrow_mut().is_some()); { let b2 = cell.borrow(); assert_eq!(*b2, 40);