From 677e1feae1bb0351c24aac3a6bf5574b422786ea Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Fri, 14 Jul 2023 13:01:00 +0200 Subject: [PATCH] Disambiguate `b` in `main_improved.rs` (#977) Based on #761. --- src/bare-metal/aps/examples/src/main_improved.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bare-metal/aps/examples/src/main_improved.rs b/src/bare-metal/aps/examples/src/main_improved.rs index b31e4950..b1e3c17c 100644 --- a/src/bare-metal/aps/examples/src/main_improved.rs +++ b/src/bare-metal/aps/examples/src/main_improved.rs @@ -38,9 +38,9 @@ extern "C" fn main(x0: u64, x1: u64, x2: u64, x3: u64) { writeln!(uart, "main({x0:#x}, {x1:#x}, {x2:#x}, {x3:#x})").unwrap(); loop { - if let Some(b) = uart.read_byte() { - uart.write_byte(b); - match b { + if let Some(byte) = uart.read_byte() { + uart.write_byte(byte); + match byte { b'\r' => { uart.write_byte(b'\n'); }