Commit 5148b94 1 parent 27f666d commit 5148b94 Copy full SHA for 5148b94
File tree 1 file changed +0
-20
lines changed
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ mod impls;
51
51
52
52
use alloc:: boxed:: Box ;
53
53
use core:: ffi:: c_void;
54
- use core:: ops:: { Deref , DerefMut } ;
55
54
56
55
/// Trait for measuring the "deep" heap usage of a data structure. This is the
57
56
/// most commonly-used of the traits.
@@ -183,22 +182,3 @@ impl MallocSizeOfOps {
183
182
have_seen_ptr_op ( ptr as * const c_void )
184
183
}
185
184
}
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
- }
You can’t perform that action at this time.
0 commit comments