Skip to content

Commit 9eab45f

Browse files
committed
mark as unstable
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent d7e8b2d commit 9eab45f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/future/into_future.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ use crate::future::Future;
3030
/// }
3131
/// }
3232
/// ```
33+
#[cfg(any(feature = "unstable", feature = "docs"))]
34+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
3335
pub trait IntoFuture {
3436
/// The type of value produced on completion.
3537
type Output;

src/future/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,20 @@ pub use async_macros::{join, select, try_join, try_select};
5050

5151
use cfg_if::cfg_if;
5252

53-
pub use into_future::IntoFuture;
5453
pub use pending::pending;
5554
pub use poll_fn::poll_fn;
5655
pub use ready::ready;
5756

58-
mod into_future;
5957
mod pending;
6058
mod poll_fn;
6159
mod ready;
6260

6361
cfg_if! {
6462
if #[cfg(any(feature = "unstable", feature = "docs"))] {
63+
mod into_future;
6564
mod timeout;
65+
66+
pub use into_future::IntoFuture;
6667
pub use timeout::{timeout, TimeoutError};
6768
}
6869
}

0 commit comments

Comments
 (0)