init: cleanup
This commit is contained in:
parent
4eb8faae84
commit
be61a30034
@ -1,7 +1,6 @@
|
|||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
use std::fs::File;
|
use std::os::yggdrasil::{mount, open, OpenOptions, FileMode, MountOptions};
|
||||||
use std::os::yggdrasil::{mount, open, OpenOptions, FileMode, unmount, MountOptions, UnmountOptions};
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unsafe {
|
unsafe {
|
||||||
@ -18,7 +17,7 @@ fn main() {
|
|||||||
open("/dev/ttyS0", OpenOptions::WRITE, FileMode::empty()).unwrap();
|
open("/dev/ttyS0", OpenOptions::WRITE, FileMode::empty()).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut stdin = std::io::stdin();
|
let stdin = std::io::stdin();
|
||||||
let mut buffer = String::new();
|
let mut buffer = String::new();
|
||||||
|
|
||||||
while let Ok(len) = stdin.read_line(&mut buffer) {
|
while let Ok(len) = stdin.read_line(&mut buffer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user