net: add missing doc cfg on TcpSocket (#3137)

This adds the missing `net` feature flag in the generated API
documentation.
This commit is contained in:
Carl Lerche 2020-11-13 11:05:22 -08:00 committed by GitHub
parent 02b1117dca
commit 850bfc9efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
#[cfg(windows)]
use std::os::windows::io::{AsRawSocket, FromRawSocket, IntoRawSocket, RawSocket};
cfg_net! {
/// A TCP socket that has not yet been converted to a `TcpStream` or
/// `TcpListener`.
///
@ -83,6 +84,7 @@ use std::os::windows::io::{AsRawSocket, FromRawSocket, IntoRawSocket, RawSocket}
pub struct TcpSocket {
inner: mio::net::TcpSocket,
}
}
impl TcpSocket {
/// Create a new socket configured for IPv4.