forked from AbleOS/ableos
CLEANUP: turned if statement into match
parent
8c6b479259
commit
4b7eabbf36
|
@ -61,11 +61,14 @@ pub fn kmain(cmdline: &str, bootstrap: Option<&'static [u8]>) -> ! {
|
|||
}
|
||||
}
|
||||
|
||||
let byte = sc.receive();
|
||||
if byte == b'\r' {
|
||||
sc.send(b'\n');
|
||||
match sc.receive() {
|
||||
b'\r' => {
|
||||
sc.send(b'\n');
|
||||
}
|
||||
byte => {
|
||||
sc.send(byte);
|
||||
}
|
||||
}
|
||||
sc.send(byte);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue