aboutsummaryrefslogtreecommitdiff
path: root/examples/cancel-reschedule.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cancel-reschedule.rs')
-rw-r--r--examples/cancel-reschedule.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/cancel-reschedule.rs b/examples/cancel-reschedule.rs
index a38a9c4e..7ab437f2 100644
--- a/examples/cancel-reschedule.rs
+++ b/examples/cancel-reschedule.rs
@@ -28,7 +28,7 @@ mod app {
// Initialize the monotonic (SysTick rate in QEMU is 12 MHz)
let mono = Systick::new(systick, 12_000_000);
- hprintln!("init").ok();
+ hprintln!("init");
// Schedule `foo` to run 1 second in the future
foo::spawn_after(1.secs()).unwrap();
@@ -42,7 +42,7 @@ mod app {
#[task]
fn foo(_: foo::Context) {
- hprintln!("foo").ok();
+ hprintln!("foo");
// Schedule `bar` to run 2 seconds in the future (1 second after foo runs)
let spawn_handle = baz::spawn_after(2.secs()).unwrap();
@@ -51,7 +51,7 @@ mod app {
#[task]
fn bar(_: bar::Context, baz_handle: baz::SpawnHandle, do_reschedule: bool) {
- hprintln!("bar").ok();
+ hprintln!("bar");
if do_reschedule {
// Reschedule baz 2 seconds from now, instead of the original 1 second
@@ -67,7 +67,7 @@ mod app {
#[task]
fn baz(_: baz::Context) {
- hprintln!("baz").ok();
+ hprintln!("baz");
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}
}