Remove unnecessary unsafe block

This commit is contained in:
Gwilym Inzani 2024-07-24 17:08:02 +01:00
parent db9fdb77e3
commit 178018c0f0

View file

@ -126,7 +126,7 @@ fn iwram_data_end() -> usize {
// Symbols defined in the linker have an address *but no data or value*.
// As strange as this looks, they are only useful to take the address of.
unsafe { core::ptr::addr_of!(__iwram_end) as usize }
core::ptr::addr_of!(__iwram_end) as usize
}
fn data_end() -> usize {
@ -136,7 +136,7 @@ fn data_end() -> usize {
// Symbols defined in the linker have an address *but no data or value*.
// As strange as this looks, they are only useful to take the address of.
unsafe { core::ptr::addr_of!(__ewram_data_end) as usize }
core::ptr::addr_of!(__ewram_data_end) as usize
}
#[cfg(test)]