Skip to content

Commit 2e7c6c8

Browse files
committed
iline docs
1 parent 7b85df5 commit 2e7c6c8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: src/os/unix/io.rs

+5
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,9 @@ cfg_docs! {
5555
/// and must close the descriptor once it's no longer needed.
5656
fn into_raw_fd(self) -> RawFd;
5757
}
58+
59+
cfg_io_safety! {
60+
#[doc(inline)]
61+
pub use std::os::unix::io::{AsFd, BorrowedFd, OwnedFd};
62+
}
5863
}

Diff for: src/os/windows/io.rs

+8
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,12 @@ cfg_docs! {
8282
/// it once it's no longer needed.
8383
fn into_raw_socket(self) -> RawSocket;
8484
}
85+
86+
cfg_io_safety! {
87+
#[doc(inline)]
88+
pub use std::os::windows::io::{
89+
AsHandle, BorrowedHandle, OwnedHandle,
90+
AsSocket, BorrowedSocket, OwnedSocket,
91+
};
92+
}
8593
}

0 commit comments

Comments
 (0)