From af2931537bad6b58c5b3efbcf0f050d78f6dfd20 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Mon, 23 Dec 2024 20:32:27 +1300 Subject: [PATCH] Remove Measurable struct Signed-off-by: Nico Burns --- malloc_size_of/src/lib.rs | 19 ------------------- 1 file changed, 19 deletions(-) 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 - } -}