diff --git a/tokio-io/src/io/mod.rs b/tokio-io/src/io/mod.rs index cadbec557..07ad0e7bc 100644 --- a/tokio-io/src/io/mod.rs +++ b/tokio-io/src/io/mod.rs @@ -43,6 +43,8 @@ pub use self::empty::{empty, Empty}; pub use self::repeat::{repeat, Repeat}; #[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 pub use self::sink::{sink, Sink}; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::take::Take; // used by `BufReader` and `BufWriter` // https://github.com/rust-lang/rust/blob/master/src/libstd/sys_common/io.rs#L1 diff --git a/tokio-io/src/lib.rs b/tokio-io/src/lib.rs index 22b415f1b..19c0338e5 100644 --- a/tokio-io/src/lib.rs +++ b/tokio-io/src/lib.rs @@ -36,7 +36,7 @@ pub use self::async_write::AsyncWrite; #[cfg(feature = "util")] pub use self::io::{ copy, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader, BufStream, - BufWriter, Copy, Empty, Repeat, Sink, + BufWriter, Copy, Empty, Repeat, Sink, Take, }; // Re-export `Buf` and `BufMut` since they are part of the API diff --git a/tokio/src/io.rs b/tokio/src/io.rs index d694e08d5..6833671fd 100644 --- a/tokio/src/io.rs +++ b/tokio/src/io.rs @@ -42,7 +42,7 @@ pub use tokio_fs::{stderr, stdin, stdout, Stderr, Stdin, Stdout}; pub use tokio_io::split::split; pub use tokio_io::{ empty, repeat, sink, AsyncBufRead, AsyncBufReadExt, AsyncRead, AsyncReadExt, AsyncWrite, - AsyncWriteExt, BufReader, BufWriter, Empty, Repeat, Sink, + AsyncWriteExt, BufReader, BufWriter, Empty, Repeat, Sink, Take, }; // Re-export io::Error so that users don't have to deal