Convert printf internals to iterator

This commit is contained in:
jD91mZM2
2019-04-22 16:25:29 +02:00
parent c2c8806f04
commit 40d01d9d57
3 changed files with 380 additions and 249 deletions
-2
View File
@@ -151,8 +151,6 @@ impl Pal for Sys {
mut argv: *const *mut c_char,
mut envp: *const *mut c_char,
) -> c_int {
use alloc::vec::Vec;
let mut file = match File::open(path, fcntl::O_RDONLY | fcntl::O_CLOEXEC) {
Ok(file) => file,
Err(_) => return -1,