aboutsummaryrefslogtreecommitdiff
path: root/examples/generics.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-08 19:40:31 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:33:28 +0100
commitceaf3613d3256f60b139a4f93220e3c298603b83 (patch)
tree02ee64f2ac4bebea1abe85f85ca761e44ea8beb9 /examples/generics.rs
parent9a67f00a30f14df3b9635913f728afd0b40c138d (diff)
downloadrtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.gz
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.zst
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.zip
Update semihosting
Diffstat (limited to 'examples/generics.rs')
-rw-r--r--examples/generics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/generics.rs b/examples/generics.rs
index a73b00fb..7117349a 100644
--- a/examples/generics.rs
+++ b/examples/generics.rs
@@ -32,7 +32,7 @@ mod app {
#[task(binds = UART0, shared = [shared], local = [state: u32 = 0])]
fn uart0(c: uart0::Context) {
- hprintln!("UART0(STATE = {})", *c.local.state).unwrap();
+ hprintln!("UART0(STATE = {})", *c.local.state);
// second argument has type `shared::shared`
super::advance(c.local.state, c.shared.shared);
@@ -44,7 +44,7 @@ mod app {
#[task(binds = UART1, priority = 2, shared = [shared], local = [state: u32 = 0])]
fn uart1(c: uart1::Context) {
- hprintln!("UART1(STATE = {})", *c.local.state).unwrap();
+ hprintln!("UART1(STATE = {})", *c.local.state);
// second argument has type `shared::shared`
super::advance(c.local.state, c.shared.shared);
@@ -61,5 +61,5 @@ fn advance(state: &mut u32, mut shared: impl Mutex<T = u32>) {
(old, *shared)
});
- hprintln!("shared: {} -> {}", old, new).unwrap();
+ hprintln!("shared: {} -> {}", old, new);
}