Skip to content

Commit 6ffbcb8

Browse files
committed
pool: fix example
* Pool trait and exception use missing
1 parent 3b2bc42 commit 6ffbcb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pool/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
//! #![no_main]
1616
//! #![no_std]
1717
//!
18-
//! use heapless::{pool, pool::singleton::Box};
18+
//! use cortex_m_rt::{entry, exception};
19+
//! use heapless::{
20+
//! pool,
21+
//! pool::singleton::{Box, Pool},
22+
//! };
1923
//!
2024
//! // instantiate a memory pool of `[u8; 128]` blocks as a global singleton
2125
//! pool!(

0 commit comments

Comments
 (0)