init: cleanup

This commit is contained in:
Mark Poliakov 2023-07-20 18:52:22 +03:00
parent 4eb8faae84
commit be61a30034

View File

@ -1,7 +1,6 @@
#![feature(rustc_private)]
use std::fs::File;
use std::os::yggdrasil::{mount, open, OpenOptions, FileMode, unmount, MountOptions, UnmountOptions};
use std::os::yggdrasil::{mount, open, OpenOptions, FileMode, MountOptions};
fn main() {
unsafe {
@ -18,7 +17,7 @@ fn main() {
open("/dev/ttyS0", OpenOptions::WRITE, FileMode::empty()).unwrap();
}
let mut stdin = std::io::stdin();
let stdin = std::io::stdin();
let mut buffer = String::new();
while let Ok(len) = stdin.read_line(&mut buffer) {