aboutsummaryrefslogtreecommitdiff
path: root/examples/big-struct-opt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/big-struct-opt.rs')
-rw-r--r--examples/big-struct-opt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/big-struct-opt.rs b/examples/big-struct-opt.rs
index 4bf93b2a..3100a0e2 100644
--- a/examples/big-struct-opt.rs
+++ b/examples/big-struct-opt.rs
@@ -67,13 +67,13 @@ mod app {
fn uart0(mut cx: uart0::Context) {
cx.shared
.big_struct
- .lock(|b| hprintln!("uart0 data:{:?}", &b.data[0..5]).unwrap());
+ .lock(|b| hprintln!("uart0 data:{:?}", &b.data[0..5]));
}
#[task(shared = [big_struct], priority = 2)]
async fn async_task(mut cx: async_task::Context) {
cx.shared
.big_struct
- .lock(|b| hprintln!("async_task data:{:?}", &b.data[0..5]).unwrap());
+ .lock(|b| hprintln!("async_task data:{:?}", &b.data[0..5]));
}
}