File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ impl MallocSizeOfOps {
152
152
153
153
/// Call `size_of_op` on `ptr`, first checking that the allocation isn't
154
154
/// empty, because some types (such as `Vec`) utilize empty allocations.
155
+ #[ allow( clippy:: missing_safety_doc) ]
155
156
pub unsafe fn malloc_size_of < T : ?Sized > ( & self , ptr : * const T ) -> usize {
156
157
if MallocSizeOfOps :: is_empty ( ptr) {
157
158
0
@@ -167,6 +168,7 @@ impl MallocSizeOfOps {
167
168
168
169
/// Call `enclosing_size_of_op`, which must be available, on `ptr`, which
169
170
/// must not be empty.
171
+ #[ allow( clippy:: missing_safety_doc) ]
170
172
pub unsafe fn malloc_enclosing_size_of < T > ( & self , ptr : * const T ) -> usize {
171
173
assert ! ( !MallocSizeOfOps :: is_empty( ptr) ) ;
172
174
( self . enclosing_size_of_op . unwrap ( ) ) ( ptr as * const c_void )
You can’t perform that action at this time.
0 commit comments