diff --git a/src/mutex.rs b/src/mutex.rs index 4dc6bac..9405df8 100644 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -756,12 +756,3 @@ impl DerefMut for MutexGuardArc { unsafe { &mut *self.0.data.get() } } } - -/// Calls a function when dropped. -struct CallOnDrop(F); - -impl Drop for CallOnDrop { - fn drop(&mut self) { - (self.0)(); - } -}