Skip to content

Commit e6a3160

Browse files
committed
add unstable cfg to FromStream/IntoStream
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent cb7f3dd commit e6a3160

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/stream/from_stream.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use std::pin::Pin;
1010
/// See also: [`IntoStream`].
1111
///
1212
/// [`IntoStream`]: trait.IntoStream.html
13+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
1314
pub trait FromStream<T: Send> {
1415
/// Creates a value from a stream.
1516
///

src/stream/into_stream.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use futures_core::stream::Stream;
1313
/// See also: [`FromStream`].
1414
///
1515
/// [`FromStream`]: trait.FromStream.html
16+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
1617
pub trait IntoStream {
1718
/// The type of the elements being iterated over.
1819
type Item;

0 commit comments

Comments
 (0)