diff --git a/src/io/mod.rs b/src/io/mod.rs index 301cfa5..8dd1ad1 100644 --- a/src/io/mod.rs +++ b/src/io/mod.rs @@ -23,34 +23,35 @@ #[doc(inline)] pub use std::io::{Error, ErrorKind, IoSlice, IoSliceMut, Result, SeekFrom}; -pub use buf_read::{BufRead, BufReadExt, Lines}; +pub use buf_read::{BufRead, Lines}; pub use buf_reader::BufReader; pub use copy::copy; pub use cursor::Cursor; pub use empty::{empty, Empty}; -pub use read::{Read, ReadExt}; +pub use read::Read; pub use repeat::{repeat, Repeat}; -pub use seek::{Seek, SeekExt}; +pub use seek::Seek; pub use sink::{sink, Sink}; pub use stderr::{stderr, Stderr}; pub use stdin::{stdin, Stdin}; pub use stdout::{stdout, Stdout}; pub use timeout::timeout; -pub use write::{Write, WriteExt}; +pub use write::Write; pub mod prelude; -mod buf_read; +pub(crate) mod buf_read; +pub(crate) mod read; +pub(crate) mod seek; +pub(crate) mod write; + mod buf_reader; mod copy; mod cursor; mod empty; -mod read; mod repeat; -mod seek; mod sink; mod stderr; mod stdin; mod stdout; mod timeout; -mod write; diff --git a/src/io/prelude.rs b/src/io/prelude.rs index eeb0ced..fb1b945 100644 --- a/src/io/prelude.rs +++ b/src/io/prelude.rs @@ -18,10 +18,10 @@ pub use crate::io::Seek; pub use crate::io::Write; #[doc(hidden)] -pub use crate::io::BufReadExt as _; +pub use crate::io::buf_read::BufReadExt as _; #[doc(hidden)] -pub use crate::io::ReadExt as _; +pub use crate::io::read::ReadExt as _; #[doc(hidden)] -pub use crate::io::SeekExt as _; +pub use crate::io::seek::SeekExt as _; #[doc(hidden)] -pub use crate::io::WriteExt as _; +pub use crate::io::write::WriteExt as _; diff --git a/src/prelude.rs b/src/prelude.rs index d28ec64..6efd747 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -27,10 +27,10 @@ pub use crate::stream::Stream; pub use crate::task_local; #[doc(hidden)] -pub use crate::io::BufReadExt as _; +pub use crate::io::buf_read::BufReadExt as _; #[doc(hidden)] -pub use crate::io::ReadExt as _; +pub use crate::io::read::ReadExt as _; #[doc(hidden)] -pub use crate::io::SeekExt as _; +pub use crate::io::seek::SeekExt as _; #[doc(hidden)] -pub use crate::io::WriteExt as _; +pub use crate::io::write::WriteExt as _;