From 631bbed5c72ae8ff2c90c585aeec288ce15d8bdd Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 23 Mar 2022 20:42:01 +0000 Subject: [PATCH] Rename get_data_end to data_end --- agb/src/agb_alloc/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agb/src/agb_alloc/mod.rs b/agb/src/agb_alloc/mod.rs index 9a2c6a94..7357c17a 100644 --- a/agb/src/agb_alloc/mod.rs +++ b/agb/src/agb_alloc/mod.rs @@ -37,7 +37,7 @@ const EWRAM_END: usize = 0x0204_0000; #[global_allocator] static GLOBAL_ALLOC: BlockAllocator = unsafe { BlockAllocator::new(StartEnd { - start: get_data_end, + start: data_end, end: || EWRAM_END, }) }; @@ -56,7 +56,7 @@ fn alloc_error(layout: Layout) -> ! { ); } -fn get_data_end() -> usize { +fn data_end() -> usize { extern "C" { static __ewram_data_end: usize; } @@ -138,7 +138,7 @@ mod test { #[test_case] fn should_return_data_end_somewhere_in_ewram(_gba: &mut crate::Gba) { - let data_end = get_data_end(); + let data_end = data_end(); assert!( 0x0200_0000 <= data_end,