From 178018c0f00f8c43c10a72a89df0b10a89779aa4 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 24 Jul 2024 17:08:02 +0100 Subject: [PATCH] Remove unnecessary unsafe block --- agb/src/agb_alloc/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/agb_alloc/mod.rs b/agb/src/agb_alloc/mod.rs index 8110ebe9..da6db3bb 100644 --- a/agb/src/agb_alloc/mod.rs +++ b/agb/src/agb_alloc/mod.rs @@ -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)]