From 6d11302725536cad866856174b23c37c1ad11456 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 16 Aug 2021 23:40:16 +0100 Subject: [PATCH] Fix clippy lint in the allocator --- agb/src/agb_alloc/block_allocator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/agb_alloc/block_allocator.rs b/agb/src/agb_alloc/block_allocator.rs index f876e0a5..8347b007 100644 --- a/agb/src/agb_alloc/block_allocator.rs +++ b/agb/src/agb_alloc/block_allocator.rs @@ -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; } }