Remove unnecessary unsafe block (#744)

Needed to fix the build

- [x] no changelog update needed
This commit is contained in:
Gwilym Inzani 2024-07-24 17:15:46 +01:00 committed by GitHub
commit 0554f16c24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)]