forked from AbleOS/ableos
CLEANUP: turned if statement into match
This commit is contained in:
parent
65f1695b46
commit
0508140f40
|
@ -61,14 +61,17 @@ pub fn kmain(cmdline: &str, bootstrap: Option<&'static [u8]>) -> ! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let byte = sc.receive();
|
match sc.receive() {
|
||||||
if byte == b'\r' {
|
b'\r' => {
|
||||||
sc.send(b'\n');
|
sc.send(b'\n');
|
||||||
}
|
}
|
||||||
|
byte => {
|
||||||
sc.send(byte);
|
sc.send(byte);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub static DEVICE_TREE: Lazy<Mutex<DeviceTree>> = Lazy::new(|| {
|
pub static DEVICE_TREE: Lazy<Mutex<DeviceTree>> = Lazy::new(|| {
|
||||||
let dt = DeviceTree::new();
|
let dt = DeviceTree::new();
|
||||||
|
|
Loading…
Reference in a new issue