io: Take struct re-export to main crate (#1670)

This commit is contained in:
madmaxio
2019-10-21 10:03:05 -07:00
committed by Carl Lerche
parent 4bee94eb06
commit 6aa6ebb5bc
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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