aboutsummaryrefslogtreecommitdiff
path: root/examples/shared.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/shared.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/shared.rs b/examples/shared.rs
index b43a19a3..d87dca52 100644
--- a/examples/shared.rs
+++ b/examples/shared.rs
@@ -2,7 +2,6 @@
#![deny(unsafe_code)]
#![deny(warnings)]
-#![deny(missing_docs)]
#![no_main]
#![no_std]
@@ -16,9 +15,7 @@ mod app {
#[shared]
struct Shared {
- /// Producer
p: Producer<'static, u32, 5>,
- /// Consumer
c: Consumer<'static, u32, 5>,
}
@@ -37,7 +34,7 @@ mod app {
fn idle(mut c: idle::Context) -> ! {
loop {
if let Some(byte) = c.shared.c.lock(|c| c.dequeue()) {
- hprintln!("received message: {}", byte);
+ hprintln!("received message: {}", byte).unwrap();
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
} else {