aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2020-06-08 07:42:19 +0000
committerHenrik Tjäder <henrik@tjaders.com>2020-09-29 11:56:56 +0000
commit19b35d7aad36fe329976274b8c6ffd5591826ac9 (patch)
tree4904e7b3aaf73654a4ab18bacc451304800315fc /examples
parent3ab2c049c5a4338dac19b7fdb522f3612c69c746 (diff)
Pool example need to import things into the mod
Diffstat (limited to 'examples')
-rw-r--r--examples/pool.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/pool.rs b/examples/pool.rs
index c87be77..27408d5 100644
--- a/examples/pool.rs
+++ b/examples/pool.rs
@@ -20,7 +20,9 @@ pool!(P: [u8; 128]);
#[app(device = lm3s6965)]
mod app {
use crate::Box;
- use crate::P;
+
+ // Import the memory pool into scope
+ use super::P;
#[init]
fn init(_: init::Context) {