mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Remove unnecessary unsafe block
This commit is contained in:
parent
db9fdb77e3
commit
178018c0f0
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue