diff --git a/src/sync.rs b/src/sync.rs index 53238d0..d6c4f0a 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -62,10 +62,6 @@ pub(crate) mod prelude { pub(crate) trait UnsafeCellExt { type Value; - fn with(&self, f: F) -> R - where - F: FnOnce(*const Self::Value) -> R; - fn with_mut(&self, f: F) -> R where F: FnOnce(*mut Self::Value) -> R; @@ -74,13 +70,6 @@ pub(crate) mod prelude { impl UnsafeCellExt for cell::UnsafeCell { type Value = T; - fn with(&self, f: F) -> R - where - F: FnOnce(*const Self::Value) -> R, - { - f(self.get()) - } - fn with_mut(&self, f: F) -> R where F: FnOnce(*mut Self::Value) -> R,