docs(body): set doc_cfg attribute for Body::wrap_stream (#2403)
This commit is contained in:
@@ -185,6 +185,7 @@ impl Body {
|
|||||||
/// This function requires enabling the `stream` feature in your
|
/// This function requires enabling the `stream` feature in your
|
||||||
/// `Cargo.toml`.
|
/// `Cargo.toml`.
|
||||||
#[cfg(feature = "stream")]
|
#[cfg(feature = "stream")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "stream")))]
|
||||||
pub fn wrap_stream<S, O, E>(stream: S) -> Body
|
pub fn wrap_stream<S, O, E>(stream: S) -> Body
|
||||||
where
|
where
|
||||||
S: Stream<Item = Result<O, E>> + Send + 'static,
|
S: Stream<Item = Result<O, E>> + Send + 'static,
|
||||||
|
|||||||
Reference in New Issue
Block a user