From 6ffbcb84f127ec41c3978d1c6557f57c843fad62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Fri, 11 Feb 2022 10:28:40 +0100 Subject: [PATCH] pool: fix example * Pool trait and exception use missing --- src/pool/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pool/mod.rs b/src/pool/mod.rs index 65a9c451..045d230e 100644 --- a/src/pool/mod.rs +++ b/src/pool/mod.rs @@ -15,7 +15,11 @@ //! #![no_main] //! #![no_std] //! -//! use heapless::{pool, pool::singleton::Box}; +//! use cortex_m_rt::{entry, exception}; +//! use heapless::{ +//! pool, +//! pool::singleton::{Box, Pool}, +//! }; //! //! // instantiate a memory pool of `[u8; 128]` blocks as a global singleton //! pool!(