Skip to content

Commit 6ef7ee3

Browse files
committed
Fix unresolved doc links.
1 parent 8516895 commit 6ef7ee3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

library/std/src/os/fd/raw.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ use crate::io;
77
use crate::os::raw;
88
#[cfg(unix)]
99
use crate::os::unix::io::OwnedFd;
10+
#[all(cfg(doc), unix)]
11+
use crate::os::unix::io::{AsFd, FromFd, IntoFd};
12+
#[all(cfg(doc), target_os = "wasi")]
13+
use crate::os::unix::io::{AsFd, FromFd, IntoFd};
1014
#[cfg(target_os = "wasi")]
1115
use crate::os::wasi::io::OwnedFd;
1216
use crate::sys_common::{AsInner, IntoInner};

library/std/src/os/windows/io/raw.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use crate::fs;
66
use crate::io;
77
use crate::net;
8+
#[all(cfg(doc), unix)]
9+
use crate::os::windows::io::{AsHandle, AsSocket, FromHandle, FromSocket, IntoHandle, IntoSocket};
810
use crate::os::windows::io::{OwnedHandle, OwnedSocket};
911
use crate::os::windows::raw;
1012
use crate::sys;

0 commit comments

Comments
 (0)