diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-02 14:34:05 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:31:01 +0100 |
| commit | 582c602912592ec7ebea3096aefa02aea99c2143 (patch) | |
| tree | 96b14a130788960ee06d7e80adec43a167b4844b /examples/task.rs | |
| parent | 7614b96fe45240dafe91ae549e712b560e2d4c10 (diff) | |
Old xtask test pass
Diffstat (limited to 'examples/task.rs')
| -rw-r--r-- | examples/task.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/task.rs b/examples/task.rs index 9757f2f..2c53aa2 100644 --- a/examples/task.rs +++ b/examples/task.rs @@ -2,7 +2,6 @@ #![deny(unsafe_code)] #![deny(warnings)] -#![deny(missing_docs)] #![no_main] #![no_std] @@ -27,31 +26,31 @@ mod app { #[task] fn foo(_: foo::Context) { - hprintln!("foo - start"); + hprintln!("foo - start").unwrap(); // spawns `bar` onto the task scheduler // `foo` and `bar` have the same priority so `bar` will not run until // after `foo` terminates bar::spawn().unwrap(); - hprintln!("foo - middle"); + hprintln!("foo - middle").unwrap(); // spawns `baz` onto the task scheduler // `baz` has higher priority than `foo` so it immediately preempts `foo` baz::spawn().unwrap(); - hprintln!("foo - end"); + hprintln!("foo - end").unwrap(); } #[task] fn bar(_: bar::Context) { - hprintln!("bar"); + hprintln!("bar").unwrap(); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } #[task(priority = 2)] fn baz(_: baz::Context) { - hprintln!("baz"); + hprintln!("baz").unwrap(); } } |
