From 433fad15a1122ddf4d06e982b31f00d0d0e79b20 Mon Sep 17 00:00:00 2001 From: Corwin Date: Sat, 30 Jul 2022 16:52:41 +0100 Subject: [PATCH] mark function as pub crate so it's not used outside agb --- agb/src/agb_alloc/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/agb_alloc/mod.rs b/agb/src/agb_alloc/mod.rs index 28d40bda..741154d2 100644 --- a/agb/src/agb_alloc/mod.rs +++ b/agb/src/agb_alloc/mod.rs @@ -54,7 +54,7 @@ static __IWRAM_ALLOC: BlockAllocator = unsafe { #[cfg(any(test, feature = "testing"))] #[cfg(test)] -pub unsafe fn number_of_blocks() -> u32 { +pub(crate) unsafe fn number_of_blocks() -> u32 { GLOBAL_ALLOC.number_of_blocks() }