From ed83a6d8af18c5f3febd15d30b5127e36af58c5d Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Thu, 17 Oct 2024 16:43:17 +0800 Subject: [PATCH] szl: replace as with cast --- szl/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/szl/src/main.rs b/szl/src/main.rs index 0c98f3f..735dda8 100644 --- a/szl/src/main.rs +++ b/szl/src/main.rs @@ -120,13 +120,13 @@ pub fn main_core0() { slcr::BootModePins::Jtag => netboot::netboot( &mut bootgen_file, config, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ), slcr::BootModePins::SdCard => { if boot_sd( &mut bootgen_file, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ) .is_err() @@ -136,7 +136,7 @@ pub fn main_core0() { netboot::netboot( &mut bootgen_file, config, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ) } @@ -147,7 +147,7 @@ pub fn main_core0() { netboot::netboot( &mut bootgen_file, config, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ) }