We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf2418 commit 20d9db5Copy full SHA for 20d9db5
examples/tlsf_integration_test.rs
@@ -56,7 +56,7 @@ fn test_allocator_api() {
56
const HEAP_SIZE: usize = 256;
57
let mut heap_mem: [MaybeUninit<u8>; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE];
58
let local_heap: Heap = Heap::empty();
59
- unsafe { local_heap.init(&raw mut heap_mem as usize, HEAP_SIZE) }
+ unsafe { local_heap.init(heap_mem.as_mut_ptr() as usize, HEAP_SIZE) }
60
61
const ELEMS: usize = 2;
62
0 commit comments