Skip to content

Commit

Permalink
docs(body): set doc_cfg attribute for Body::wrap_stream (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc authored Jan 16, 2021
1 parent bf8d74a commit f821ecd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/body/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ impl Body {
/// This function requires enabling the `stream` feature in your
/// `Cargo.toml`.
#[cfg(feature = "stream")]
#[cfg_attr(docsrs, doc(cfg(feature = "stream")))]
pub fn wrap_stream<S, O, E>(stream: S) -> Body
where
S: Stream<Item = Result<O, E>> + Send + 'static,
Expand Down

0 comments on commit f821ecd

Please sign in to comment.