Skip to content

Commit f821ecd

Browse files
authored
docs(body): set doc_cfg attribute for Body::wrap_stream (#2403)
1 parent bf8d74a commit f821ecd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/body/body.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ impl Body {
185185
/// This function requires enabling the `stream` feature in your
186186
/// `Cargo.toml`.
187187
#[cfg(feature = "stream")]
188+
#[cfg_attr(docsrs, doc(cfg(feature = "stream")))]
188189
pub fn wrap_stream<S, O, E>(stream: S) -> Body
189190
where
190191
S: Stream<Item = Result<O, E>> + Send + 'static,

0 commit comments

Comments
 (0)