Fix warnings.
This commit is contained in:
+1
-2
@@ -41,7 +41,6 @@ pub fn main() -> ! {
|
||||
initfs_length = initfs_length_opt.expect("missing INITFS_LENGTH");
|
||||
|
||||
let iter = || raw_iter().filter(|var| !var.starts_with(b"INITFS_"));
|
||||
let env_count = iter().count();
|
||||
|
||||
iter().map(|var| var.to_owned()).collect::<Vec<_>>()
|
||||
};
|
||||
@@ -71,7 +70,7 @@ pub fn main() -> ! {
|
||||
}
|
||||
|
||||
unsafe fn spawn_initfs(initfs_start: usize, initfs_length: usize) {
|
||||
let read = syscall::open("pipe:", syscall::O_CLOEXEC).expect("failed to open sync read pipe");
|
||||
let read = syscall::open("pipe:", O_CLOEXEC).expect("failed to open sync read pipe");
|
||||
|
||||
// The write pipe will not inherit O_CLOEXEC, but is closed by the daemon later.
|
||||
let write = syscall::dup(read, b"write").expect("failed to open sync write pipe");
|
||||
|
||||
+1
-1
@@ -281,6 +281,6 @@ pub fn run(bytes: &'static [u8], sync_pipe: usize) -> ! {
|
||||
}
|
||||
}
|
||||
}
|
||||
syscall::exit(0);
|
||||
syscall::exit(0).expect("initfs: failed to exit");
|
||||
unreachable!()
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#![no_std]
|
||||
#![feature(
|
||||
asm_const,
|
||||
asm_sym,
|
||||
alloc_error_handler,
|
||||
core_intrinsics,
|
||||
lang_items,
|
||||
|
||||
Reference in New Issue
Block a user