mirror of
https://github.com/openharmony/third_party_rust_hyper.git
synced 2026-07-19 22:03:50 -04:00
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
|
||||
/// `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,
|
||||
|
||||
Reference in New Issue
Block a user