From e6a3160c8b2c86ebfc687feef35ddeb3baedf75c Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Fri, 13 Sep 2019 02:49:48 +0200 Subject: [PATCH] add unstable cfg to FromStream/IntoStream Signed-off-by: Yoshua Wuyts --- src/stream/from_stream.rs | 1 + src/stream/into_stream.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/stream/from_stream.rs b/src/stream/from_stream.rs index 7a262f7a..91d3e24b 100644 --- a/src/stream/from_stream.rs +++ b/src/stream/from_stream.rs @@ -10,6 +10,7 @@ use std::pin::Pin; /// See also: [`IntoStream`]. /// /// [`IntoStream`]: trait.IntoStream.html +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] pub trait FromStream { /// Creates a value from a stream. /// diff --git a/src/stream/into_stream.rs b/src/stream/into_stream.rs index 42f95299..b2913170 100644 --- a/src/stream/into_stream.rs +++ b/src/stream/into_stream.rs @@ -13,6 +13,7 @@ use futures_core::stream::Stream; /// See also: [`FromStream`]. /// /// [`FromStream`]: trait.FromStream.html +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] pub trait IntoStream { /// The type of the elements being iterated over. type Item;