fix "still mutable" ice while metrics are enabled

This commit is contained in:
Jane Losare-Lusby 2025-04-07 14:26:14 -07:00
parent e643f59f6d
commit 6f55015835
5 changed files with 120 additions and 5 deletions

View file

@ -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]