Skip to content

Commit 2a4d012

Browse files
committed
Add dummy FileDesc struct for doc target
1 parent 12fbabd commit 2a4d012

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/std/src/os/linux/process.rs

+4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
use crate::io::Result;
66
use crate::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
77
use crate::process;
8+
#[cfg(not(doc))]
89
use crate::sys::fd::FileDesc;
910
use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
1011

12+
#[cfg(doc)]
13+
struct FileDesc;
14+
1115
/// This type represents a file descriptor that refers to a process.
1216
///
1317
/// A `PidFd` can be obtained by setting the corresponding option on [`Command`]

0 commit comments

Comments
 (0)