diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-08 19:40:31 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:28 +0100 |
| commit | ceaf3613d3256f60b139a4f93220e3c298603b83 (patch) | |
| tree | 02ee64f2ac4bebea1abe85f85ca761e44ea8beb9 /examples/only-shared-access.rs | |
| parent | 9a67f00a30f14df3b9635913f728afd0b40c138d (diff) | |
Update semihosting
Diffstat (limited to 'examples/only-shared-access.rs')
| -rw-r--r-- | examples/only-shared-access.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/only-shared-access.rs b/examples/only-shared-access.rs index b506e44..09cb23a 100644 --- a/examples/only-shared-access.rs +++ b/examples/only-shared-access.rs @@ -31,13 +31,13 @@ mod app { #[task(shared = [&key])] async fn foo(cx: foo::Context) { let key: &u32 = cx.shared.key; - hprintln!("foo(key = {:#x})", key).unwrap(); + hprintln!("foo(key = {:#x})", key); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } #[task(priority = 2, shared = [&key])] async fn bar(cx: bar::Context) { - hprintln!("bar(key = {:#x})", cx.shared.key).unwrap(); + hprintln!("bar(key = {:#x})", cx.shared.key); } } |
