diff --git a/crates/wasi-common/yanix/src/fcntl.rs b/crates/wasi-common/yanix/src/fcntl.rs index 66dd7fbc2934..3313ae2db88f 100644 --- a/crates/wasi-common/yanix/src/fcntl.rs +++ b/crates/wasi-common/yanix/src/fcntl.rs @@ -6,9 +6,7 @@ use std::io::Result; #[cfg(unix)] use std::os::unix::prelude::*; #[cfg(target_os = "wasi")] -use std::os::wasi::io::RawFd; -#[cfg(target_os = "wasi")] -use std::os::wasi::prelude::*; // TODO: https://github.com/rust-lang/rust/pull/74075 +use std::os::wasi::prelude::*; #[cfg(not(target_os = "wasi"))] pub unsafe fn dup_fd(fd: RawFd, close_on_exec: bool) -> Result { diff --git a/crates/wasi-common/yanix/src/file.rs b/crates/wasi-common/yanix/src/file.rs index b606c83d3a16..ed96d0cc50d7 100644 --- a/crates/wasi-common/yanix/src/file.rs +++ b/crates/wasi-common/yanix/src/file.rs @@ -13,8 +13,6 @@ use libc::{ #[cfg(unix)] use std::os::unix::prelude::*; #[cfg(target_os = "wasi")] -use std::os::wasi::io::RawFd; // TODO: https://github.com/rust-lang/rust/pull/74075 -#[cfg(target_os = "wasi")] use std::os::wasi::prelude::*; use std::{convert::TryInto, ffi::OsString, io::Result, path::Path}; diff --git a/crates/wasi-common/yanix/src/sys/wasi/fadvise.rs b/crates/wasi-common/yanix/src/sys/wasi/fadvise.rs index 31ae327f370c..56989a0d74ca 100644 --- a/crates/wasi-common/yanix/src/sys/wasi/fadvise.rs +++ b/crates/wasi-common/yanix/src/sys/wasi/fadvise.rs @@ -1,7 +1,6 @@ use crate::from_success_code; use std::io::Result; use std::os::wasi::io::RawFd; -use std::os::wasi::prelude::*; // TODO: https://github.com/rust-lang/rust/pull/74075 #[derive(Debug, Copy, Clone)] #[repr(i32)] diff --git a/crates/wasi-common/yanix/src/sys/wasi/file.rs b/crates/wasi-common/yanix/src/sys/wasi/file.rs index 9faeb97613e8..18ab37618d3d 100644 --- a/crates/wasi-common/yanix/src/sys/wasi/file.rs +++ b/crates/wasi-common/yanix/src/sys/wasi/file.rs @@ -1,6 +1,5 @@ use std::{ io::{Error, Result}, - os::wasi::io::RawFd, // TODO: https://github.com/rust-lang/rust/pull/74075 os::wasi::prelude::*, };