diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-02-26 16:33:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-26 16:33:16 +0000 |
| commit | 1c5db277e4161470136dbd2a11e914ff1d383581 (patch) | |
| tree | 34bfc21983627c96874bf123596ad9ac1241f016 /examples | |
| parent | d43c2b64cc726ff093d418d45d89226dd76e4e55 (diff) | |
| parent | e1a0987dc2cff288a35359db48c3a7ca7e2807dc (diff) | |
Merge #698
698: Release: v1.1.4 r=perlindgren a=AfoHT
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/pool.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/pool.rs b/examples/pool.rs index ab76370..4c551be 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<P>) { - hprintln!("foo({:?})", x.as_ptr()); - + fn foo(_: foo::Context, _x: Box<P>) { // 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<P>) { - hprintln!("bar({:?})", x.as_ptr()); - + fn bar(_: bar::Context, _x: Box<P>) { // this is done automatically so we can omit the call to `drop` // drop(x); } |
