fixing the custom.rs

This commit is contained in:
blitzerr 2020-09-22 08:51:20 -07:00
parent 3ffd403c6b
commit 14736ca20b

View File

@ -23,7 +23,7 @@ unsafe impl alloc::GlobalAlloc for A {
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
HITS.fetch_add(1, Ordering::SeqCst);
System.dealloc(ptr, layout)
AllocRef::dealloc(&System, ptr, layout)
}
}