diff options
author | Carl Lerche <me@carllerche.com> | 2019-05-14 10:27:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 10:27:36 -0700 |
commit | cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0 (patch) | |
tree | 2158eab230c8717d3b35717e50f14fda6ca0edf1 /tokio/src/prelude.rs | |
parent | 79d88200500f6e6c9970e1ad26469276c1a2f71f (diff) |
Update Tokio to Rust 2018 (#1082)
Diffstat (limited to 'tokio/src/prelude.rs')
-rw-r--r-- | tokio/src/prelude.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tokio/src/prelude.rs b/tokio/src/prelude.rs index b1b5f85b..e364e8bf 100644 --- a/tokio/src/prelude.rs +++ b/tokio/src/prelude.rs @@ -10,15 +10,9 @@ //! //! The prelude may grow over time as additional items see ubiquitous use. -#[cfg(feature = "io")] -pub use tokio_io::{AsyncRead, AsyncWrite}; - -pub use util::{FutureExt, StreamExt}; - -pub use std::io::{Read, Write}; - +pub use crate::util::{FutureExt, StreamExt}; pub use futures::{future, stream, task, Async, AsyncSink, Future, IntoFuture, Poll, Sink, Stream}; - +pub use std::io::{Read, Write}; #[cfg(feature = "async-await-preview")] #[doc(inline)] pub use tokio_futures::{ @@ -26,3 +20,5 @@ pub use tokio_futures::{ sink::SinkExt, stream::StreamExt as StreamAsyncExt, }; +#[cfg(feature = "io")] +pub use tokio_io::{AsyncRead, AsyncWrite}; |