Fix a bug around deleting all the vectors of a doc

This commit is contained in:
Clément Renault
2024-11-28 15:15:06 +01:00
parent cc4bd54669
commit 096a28656e
3 changed files with 23 additions and 53 deletions

View File

@ -5,6 +5,7 @@ pub trait RefCellExt<T: ?Sized> {
&self,
) -> std::result::Result<RefMut<'_, T>, std::cell::BorrowMutError>;
#[track_caller]
fn borrow_mut_or_yield(&self) -> RefMut<'_, T> {
self.try_borrow_mut_or_yield().unwrap()
}