(&mut self)
| 51 | |
| 52 | impl Drop for Owned { |
| 53 | fn drop(&mut self) { |
| 54 | match self.header.buffer { |
| 55 | Buffer::Indirect(ptr) => unsafe { |
| 56 | self.metrics.mark_external_deallocation((*ptr).len()); |
| 57 | drop(Box::from_raw(ptr as *mut [u8])); |
| 58 | }, |
| 59 | Buffer::Inline(_) => unreachable!(), |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | let metrics = mc.metrics().clone(); |
nothing calls this directly
no test coverage detected