docs(server): use cfg_feature! on hyper::server::conn::tcp instead of #[cfg]
This is required to surface the required feature (`tcp`) in the generated docs
for `hyper::server::conn::{AddrIncoming, AddrStream}`. Before this change,
their docs only mentioned the features needed for the `hyper::server::conn` mod
itself.
Fixes #2425
This commit is contained in:
@@ -61,6 +61,10 @@ cfg_feature! {
|
||||
pub mod conn;
|
||||
mod server;
|
||||
mod shutdown;
|
||||
#[cfg(feature = "tcp")]
|
||||
mod tcp;
|
||||
|
||||
cfg_feature! {
|
||||
#![feature = "tcp"]
|
||||
|
||||
mod tcp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user