diff --git a/malloc_size_of/src/lib.rs b/malloc_size_of/src/lib.rs index dbf2d56..c763338 100644 --- a/malloc_size_of/src/lib.rs +++ b/malloc_size_of/src/lib.rs @@ -183,22 +183,3 @@ impl MallocSizeOfOps { have_seen_ptr_op(ptr as *const c_void) } } - -/// Measurable that defers to inner value and used to verify MallocSizeOf implementation in a -/// struct. -#[derive(Clone)] -pub struct Measurable(pub T); - -impl Deref for Measurable { - type Target = T; - - fn deref(&self) -> &T { - &self.0 - } -} - -impl DerefMut for Measurable { - fn deref_mut(&mut self) -> &mut T { - &mut self.0 - } -}