Fix clippy lint in the allocator

This commit is contained in:
Gwilym Kuiper 2021-08-16 23:40:16 +01:00
parent bec0cc6055
commit 6d11302725

View file

@ -101,6 +101,6 @@ unsafe impl GlobalAlloc for BlockAllocator {
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
let block = Block::from_data_ptr(ptr, layout); let block = Block::from_data_ptr(ptr, layout);
(&mut *block).used = false; (*block).used = false;
} }
} }