Skip to content

Commit 8bc95d3

Browse files
committed
updat st7789-slint demo to new HEAP style
1 parent dc38e9c commit 8bc95d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/st7789-slint/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ unsafe fn setup_heap() {
5151

5252
const HEAP_SIZE: usize = 1024 * 6;
5353
static mut HEAP_MEM: [MaybeUninit<u8>; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE];
54-
unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) }
54+
unsafe { HEAP.init(&raw mut HEAP_MEM as usize, HEAP_SIZE) }
5555
}
5656

5757
// Display

0 commit comments

Comments
 (0)