Skip to content

Commit 20d9db5

Browse files
committed
Review changes
1 parent 8cf2418 commit 20d9db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tlsf_integration_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn test_allocator_api() {
5656
const HEAP_SIZE: usize = 256;
5757
let mut heap_mem: [MaybeUninit<u8>; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE];
5858
let local_heap: Heap = Heap::empty();
59-
unsafe { local_heap.init(&raw mut heap_mem as usize, HEAP_SIZE) }
59+
unsafe { local_heap.init(heap_mem.as_mut_ptr() as usize, HEAP_SIZE) }
6060

6161
const ELEMS: usize = 2;
6262

0 commit comments

Comments
 (0)