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/not-sync.rs | |
| parent | 9a67f00a30f14df3b9635913f728afd0b40c138d (diff) | |
Update semihosting
Diffstat (limited to 'examples/not-sync.rs')
| -rw-r--r-- | examples/not-sync.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs index eb5c9f8..28a48f2 100644 --- a/examples/not-sync.rs +++ b/examples/not-sync.rs @@ -32,7 +32,7 @@ mod app { #[init] fn init(_: init::Context) -> (Shared, Local) { - hprintln!("init").unwrap(); + hprintln!("init"); foo::spawn().unwrap(); bar::spawn().unwrap(); @@ -56,12 +56,12 @@ mod app { #[task(shared = [&shared])] async fn foo(c: foo::Context) { let shared: &NotSync = c.shared.shared; - hprintln!("foo a {}", shared.data).unwrap(); + hprintln!("foo a {}", shared.data); } #[task(shared = [&shared])] async fn bar(c: bar::Context) { let shared: &NotSync = c.shared.shared; - hprintln!("foo a {}", shared.data).unwrap(); + hprintln!("foo a {}", shared.data); } } |
