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:
Arnavion
2021-02-08 20:00:03 -08:00
committed by Sean McArthur
parent dfa1bb291d
commit 42587059e6

View File

@@ -61,6 +61,10 @@ cfg_feature! {
pub mod conn;
mod server;
mod shutdown;
#[cfg(feature = "tcp")]
mod tcp;
cfg_feature! {
#![feature = "tcp"]
mod tcp;
}
}