Skip to content

Commit af29315

Browse files
committed
Remove Measurable struct
Signed-off-by: Nico Burns <nico@nicoburns.com>
1 parent 27f666d commit af29315

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

malloc_size_of/src/lib.rs

-19
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,3 @@ impl MallocSizeOfOps {
183183
have_seen_ptr_op(ptr as *const c_void)
184184
}
185185
}
186-
187-
/// Measurable that defers to inner value and used to verify MallocSizeOf implementation in a
188-
/// struct.
189-
#[derive(Clone)]
190-
pub struct Measurable<T: MallocSizeOf>(pub T);
191-
192-
impl<T: MallocSizeOf> Deref for Measurable<T> {
193-
type Target = T;
194-
195-
fn deref(&self) -> &T {
196-
&self.0
197-
}
198-
}
199-
200-
impl<T: MallocSizeOf> DerefMut for Measurable<T> {
201-
fn deref_mut(&mut self) -> &mut T {
202-
&mut self.0
203-
}
204-
}

0 commit comments

Comments
 (0)