mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 01:21:34 +11:00
Fix clippy lint in the allocator
This commit is contained in:
parent
bec0cc6055
commit
6d11302725
|
@ -101,6 +101,6 @@ unsafe impl GlobalAlloc for BlockAllocator {
|
|||
|
||||
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
|
||||
let block = Block::from_data_ptr(ptr, layout);
|
||||
(&mut *block).used = false;
|
||||
(*block).used = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue