Skip to content

Commit

Permalink
add unstable cfg to FromStream/IntoStream
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <[email protected]>
  • Loading branch information
yoshuawuyts committed Sep 13, 2019
1 parent c22ebc3 commit bca314a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/stream/from_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Send> {
/// Creates a value from a stream.
///
Expand Down
1 change: 1 addition & 0 deletions src/stream/into_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bca314a

Please sign in to comment.