Skip to content

Commit 764f200

Browse files
author
Stjepan Glavina
committed
Move future::timeout() behind cfg_default
1 parent 75aa623 commit 764f200

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/future/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ pub use future::Future;
5353
pub use pending::pending;
5454
pub use poll_fn::poll_fn;
5555
pub use ready::ready;
56-
pub use timeout::{timeout, TimeoutError};
5756

5857
pub(crate) mod future;
5958
mod pending;
6059
mod poll_fn;
6160
mod ready;
62-
mod timeout;
61+
62+
cfg_default! {
63+
pub use timeout::{timeout, TimeoutError};
64+
mod timeout;
65+
}
6366

6467
cfg_unstable! {
6568
pub use into_future::IntoFuture;

0 commit comments

Comments
 (0)