diff options
author | 2023-01-11 21:33:44 +0100 | |
---|---|---|
committer | 2023-01-11 21:33:44 +0100 | |
commit | 1fe587c5160b9e99bbb67644318cb9e5c9c56b4e (patch) | |
tree | 226bb5664329af932c9444cdc1b8134dcfd3c929 /examples/resource-user-struct.rs | |
parent | 67cccbd4819c4d874780a6b388d7f10c1c8031b2 (diff) | |
download | rtic-1fe587c5160b9e99bbb67644318cb9e5c9c56b4e.tar.gz rtic-1fe587c5160b9e99bbb67644318cb9e5c9c56b4e.tar.zst rtic-1fe587c5160b9e99bbb67644318cb9e5c9c56b4e.zip |
Remove unwrap() from hprintln!()
sd 'hprintln(.*).unwrap\(\)' 'hprintln' (fd -e rs .)
Diffstat (limited to 'examples/resource-user-struct.rs')
-rw-r--r-- | examples/resource-user-struct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resource-user-struct.rs b/examples/resource-user-struct.rs index ae1918d0..39a5b16c 100644 --- a/examples/resource-user-struct.rs +++ b/examples/resource-user-struct.rs @@ -55,7 +55,7 @@ mod app { *shared }); - hprintln!("UART0: shared = {}", shared).unwrap(); + hprintln!("UART0: shared = {}", shared); } // `shared` can be accessed from this context @@ -66,6 +66,6 @@ mod app { *shared }); - hprintln!("UART1: shared = {}", shared).unwrap(); + hprintln!("UART1: shared = {}", shared); } } |