diff --git a/ci/expected/pool.run b/ci/expected/pool.run index 81f79d41e9..e69de29bb2 100644 --- a/ci/expected/pool.run +++ b/ci/expected/pool.run @@ -1,2 +0,0 @@ -bar(0x20000088) -foo(0x2000010c) diff --git a/examples/pool.rs b/examples/pool.rs index ab76370e71..4c551bef06 100644 --- a/examples/pool.rs +++ b/examples/pool.rs @@ -20,7 +20,7 @@ pool!(P: [u8; 128]); #[app(device = lm3s6965, dispatchers = [SSI0, QEI0])] mod app { use crate::{Box, Pool}; - use cortex_m_semihosting::{debug, hprintln}; + use cortex_m_semihosting::debug; use lm3s6965::Interrupt; // Import the memory pool into scope @@ -57,19 +57,15 @@ mod app { } #[task] - fn foo(_: foo::Context, x: Box

) { - hprintln!("foo({:?})", x.as_ptr()); - + fn foo(_: foo::Context, _x: Box

) { // explicitly return the block to the pool - drop(x); + drop(_x); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } #[task(priority = 2)] - fn bar(_: bar::Context, x: Box

) { - hprintln!("bar({:?})", x.as_ptr()); - + fn bar(_: bar::Context, _x: Box

) { // this is done automatically so we can omit the call to `drop` // drop(x); }