mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Fix clippy lint in the allocator
This commit is contained in:
parent
bec0cc6055
commit
6d11302725
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue