1
0
Fork 0
forked from koniifer/ableos

CLEANUP: turned if statement into match

This commit is contained in:
able 2023-06-21 17:16:22 -05:00
parent 65f1695b46
commit 0508140f40

View file

@ -61,14 +61,17 @@ pub fn kmain(cmdline: &str, bootstrap: Option<&'static [u8]>) -> ! {
}
}
let byte = sc.receive();
if byte == b'\r' {
match sc.receive() {
b'\r' => {
sc.send(b'\n');
}
byte => {
sc.send(byte);
}
}
}
}
}
pub static DEVICE_TREE: Lazy<Mutex<DeviceTree>> = Lazy::new(|| {
let dt = DeviceTree::new();