fix "still mutable" ice while metrics are enabled
This commit is contained in:
parent
e643f59f6d
commit
6f55015835
5 changed files with 120 additions and 5 deletions
|
@ -88,7 +88,7 @@ impl<T> FreezeLock<T> {
|
|||
#[inline]
|
||||
#[track_caller]
|
||||
pub fn write(&self) -> FreezeWriteGuard<'_, T> {
|
||||
self.try_write().expect("still mutable")
|
||||
self.try_write().expect("data should not be frozen if we're still attempting to mutate it")
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue