diff options
author | 2023-01-02 14:34:05 +0100 | |
---|---|---|
committer | 2023-03-01 00:31:01 +0100 | |
commit | 582c602912592ec7ebea3096aefa02aea99c2143 (patch) | |
tree | 96b14a130788960ee06d7e80adec43a167b4844b /examples/only-shared-access.rs | |
parent | 7614b96fe45240dafe91ae549e712b560e2d4c10 (diff) | |
download | rtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.gz rtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.zst rtic-582c602912592ec7ebea3096aefa02aea99c2143.zip |
Old xtask test pass
Diffstat (limited to 'examples/only-shared-access.rs')
-rw-r--r-- | examples/only-shared-access.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/only-shared-access.rs b/examples/only-shared-access.rs index b32827ab..8b0a77ef 100644 --- a/examples/only-shared-access.rs +++ b/examples/only-shared-access.rs @@ -2,7 +2,6 @@ #![deny(unsafe_code)] #![deny(warnings)] -#![deny(missing_docs)] #![no_main] #![no_std] @@ -31,13 +30,13 @@ mod app { #[task(shared = [&key])] fn foo(cx: foo::Context) { let key: &u32 = cx.shared.key; - hprintln!("foo(key = {:#x})", key); + hprintln!("foo(key = {:#x})", key).unwrap(); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } #[task(priority = 2, shared = [&key])] fn bar(cx: bar::Context) { - hprintln!("bar(key = {:#x})", cx.shared.key); + hprintln!("bar(key = {:#x})", cx.shared.key).unwrap(); } } |