1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-08-09 16:58:19 +02:00

Reduce vertical space slightly in UART examples (#2407)

Co-authored-by: Dustin J. Mitchell <djmitche@google.com>
This commit is contained in:
Martin Geisler
2025-01-27 19:40:48 +01:00
committed by GitHub
parent a846003665
commit deae2e2d53

View File

@ -42,9 +42,7 @@ extern "C" fn main(x0: u64, x1: u64, x2: u64, x3: u64) {
if let Some(byte) = uart.read_byte() {
uart.write_byte(byte);
match byte {
b'\r' => {
uart.write_byte(b'\n');
}
b'\r' => uart.write_byte(b'\n'),
b'q' => break,
_ => continue,
}