diff --git a/src/lib.rs b/src/lib.rs index 8d1f56c..57d0f6d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -490,7 +490,7 @@ pub mod unsync { #[cfg(feature = "critical-section")] #[inline] pub(crate) unsafe fn get_unchecked(&self) -> &T { - crate::unwrap_unchecked(self.get()) + unwrap_unchecked(self.get()) } /// Sets the contents of this cell to `value`. @@ -1380,11 +1380,13 @@ pub mod sync { pub mod race; #[cfg(feature = "sync")] +#[track_caller] #[inline] unsafe fn take_unchecked(val: &mut Option) -> T { unwrap_unchecked(val.take()) } +#[track_caller] #[inline] unsafe fn unwrap_unchecked(val: Option) -> T { match val {