mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 04:50:34 +00:00
fix unit test
This commit is contained in:
parent
ef399ab44f
commit
1af760e971
@ -419,7 +419,9 @@ mod tests {
|
||||
#[cfg(not(feature = "min-const-fn"))]
|
||||
let POOL: Pool<[u8; 128]> = Pool::new();
|
||||
|
||||
unsafe { POOL.grow(&mut MEMORY) }
|
||||
unsafe {
|
||||
POOL.grow(&mut MEMORY);
|
||||
}
|
||||
|
||||
for _ in 0..7 {
|
||||
assert!(POOL.alloc().is_some());
|
||||
|
Loading…
x
Reference in New Issue
Block a user