From 3c3b4349e8049d4556e08af1e30e7f66cb1f2b8b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 21 May 2024 19:48:56 +0200 Subject: [PATCH] that should do the job --- satrs/src/pool.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/satrs/src/pool.rs b/satrs/src/pool.rs index c655643..d8a0373 100644 --- a/satrs/src/pool.rs +++ b/satrs/src/pool.rs @@ -388,7 +388,7 @@ pub mod heapless_mod { static mut $pool_name: core::mem::MaybeUninit<[u8; $num_blocks * $block_size]> = core::mem::MaybeUninit::new([0; $num_blocks * $block_size]); static mut $sizes_list_name: core::mem::MaybeUninit<[usize; $num_blocks]> = - core::mem::MaybeUninit::new([satrs::pool::STORE_FREE; $num_blocks]); + core::mem::MaybeUninit::new([$crate::pool::STORE_FREE; $num_blocks]); }; } @@ -1573,6 +1573,7 @@ mod tests { #[cfg(feature = "heapless")] mod heapless_tests { use super::*; + use crate::static_subpool; use core::mem::MaybeUninit; const SUBPOOL_1_BLOCK_SIZE: usize = 4;