Skip to content

Commit 43e1810

Browse files
alexcrichtonbrson
authored andcommitted
std: Add FromRaw{Fd,Handle,Socket} to os preludes
These were just left out by mistake!
1 parent e99b140 commit 43e1810

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libstd/sys/unix/ext/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub mod raw;
4141
#[stable(feature = "rust1", since = "1.0.0")]
4242
pub mod prelude {
4343
#[doc(no_inline)]
44-
pub use super::io::{RawFd, AsRawFd};
44+
pub use super::io::{RawFd, AsRawFd, FromRawFd};
4545
#[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
4646
pub use super::ffi::{OsStrExt, OsStringExt};
4747
#[doc(no_inline)]

src/libstd/sys/windows/ext/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ pub mod raw;
2828
pub mod prelude {
2929
#[doc(no_inline)]
3030
pub use super::io::{RawSocket, RawHandle, AsRawSocket, AsRawHandle};
31+
#[doc(no_inline)]
32+
pub use super::io::{FromRawSocket, FromRawHandle};
3133
#[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
3234
pub use super::ffi::{OsStrExt, OsStringExt};
3335
#[doc(no_inline)]

0 commit comments

Comments
 (0)