diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2023-01-11 21:33:44 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-01-11 21:33:44 +0100 |
| commit | 1fe587c5160b9e99bbb67644318cb9e5c9c56b4e (patch) | |
| tree | 226bb5664329af932c9444cdc1b8134dcfd3c929 /examples/shared.rs | |
| parent | 67cccbd4819c4d874780a6b388d7f10c1c8031b2 (diff) | |
Remove unwrap() from hprintln!()
sd 'hprintln(.*).unwrap\(\)' 'hprintln' (fd -e rs .)
Diffstat (limited to 'examples/shared.rs')
| -rw-r--r-- | examples/shared.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shared.rs b/examples/shared.rs index d87dca5..58d64e4 100644 --- a/examples/shared.rs +++ b/examples/shared.rs @@ -34,7 +34,7 @@ mod app { fn idle(mut c: idle::Context) -> ! { loop { if let Some(byte) = c.shared.c.lock(|c| c.dequeue()) { - hprintln!("received message: {}", byte).unwrap(); + hprintln!("received message: {}", byte); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } else { |
