Skip to content

Commit

Permalink
chore: clean up spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
snormore committed Apr 24, 2024
1 parent 6481c6d commit aef38fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ impl<T> Drop for OwnedRefMut<T> {
borrow_state.mutable_borrowed = false;
}
}

#[cfg(test)]
mod tests {
use std::panic::{self, AssertUnwindSafe};
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit aef38fa

Please sign in to comment.