Skip to content

Commit deae2e2

Browse files
mgeislerdjmitche
andauthored
Reduce vertical space slightly in UART examples (#2407)
Co-authored-by: Dustin J. Mitchell <[email protected]>
1 parent a846003 commit deae2e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/bare-metal/aps/examples/src/main_improved.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ extern "C" fn main(x0: u64, x1: u64, x2: u64, x3: u64) {
4242
if let Some(byte) = uart.read_byte() {
4343
uart.write_byte(byte);
4444
match byte {
45-
b'\r' => {
46-
uart.write_byte(b'\n');
47-
}
45+
b'\r' => uart.write_byte(b'\n'),
4846
b'q' => break,
4947
_ => continue,
5048
}

0 commit comments

Comments
 (0)