add unstable cfg to FromStream/IntoStream

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Yoshua Wuyts 2019-09-13 02:49:48 +02:00
parent cb7f3dd376
commit e6a3160c8b
No known key found for this signature in database
GPG key ID: 24EA8164F96777ED
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@ use std::pin::Pin;
/// See also: [`IntoStream`]. /// See also: [`IntoStream`].
/// ///
/// [`IntoStream`]: trait.IntoStream.html /// [`IntoStream`]: trait.IntoStream.html
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub trait FromStream<T: Send> { pub trait FromStream<T: Send> {
/// Creates a value from a stream. /// Creates a value from a stream.
/// ///

View file

@ -13,6 +13,7 @@ use futures_core::stream::Stream;
/// See also: [`FromStream`]. /// See also: [`FromStream`].
/// ///
/// [`FromStream`]: trait.FromStream.html /// [`FromStream`]: trait.FromStream.html
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub trait IntoStream { pub trait IntoStream {
/// The type of the elements being iterated over. /// The type of the elements being iterated over.
type Item; type Item;