From 83bd3d3975bd56e0bd959b5df8129e4ee21aeca3 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 3 Jul 2020 15:56:50 -0700 Subject: [PATCH] Add `RawFd` to WASI's `std::os::wasi::prelude`. Add `RawFd` to WASI's `std::os::wasi::prelude`, making it consistent with all other platforms which also have `AsRawFd`, `FromRawFd`, and `IntoRawFd` in their respective preludes. --- src/libstd/sys/wasi/ext/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sys/wasi/ext/mod.rs b/src/libstd/sys/wasi/ext/mod.rs index 5f8b1cbfa0b53..58c8c46c969c1 100644 --- a/src/libstd/sys/wasi/ext/mod.rs +++ b/src/libstd/sys/wasi/ext/mod.rs @@ -18,5 +18,5 @@ pub mod prelude { pub use crate::sys::ext::fs::{DirEntryExt, FileExt, MetadataExt, OpenOptionsExt}; #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")] - pub use crate::sys::ext::io::{AsRawFd, FromRawFd, IntoRawFd}; + pub use crate::sys::ext::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; }