Skip to content

Commit a70b6a6

Browse files
JalonWongsgued
andauthored
Update src/lib.rs
Co-authored-by: Soso <[email protected]>
1 parent d47bd8a commit a70b6a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ use critical_section::Mutex;
5252
macro_rules! init {
5353
($heap:ident, $size:expr) => {
5454
// Ensure it is called only once.
55-
embedded_alloc::call_once();
55+
$crate::call_once();
5656
// Ensure the heap is static.
5757
let _static_heap: &'static Heap = &$heap;
5858
assert!($size > 0);
59-
static mut HEAP_MEM: [core::mem::MaybeUninit<u8>; $size] =
60-
[core::mem::MaybeUninit::uninit(); $size];
59+
static mut HEAP_MEM: [::core::mem::MaybeUninit<u8>; $size] =
60+
[::core::mem::MaybeUninit::uninit(); $size];
6161
unsafe {
6262
#[allow(static_mut_refs)]
6363
$heap.init(&raw mut HEAP_MEM as usize, $size)

0 commit comments

Comments
 (0)