Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ba24561

Browse files
Export BufReadExt and SeekExt from async_std::io
`async_std::io` exports `Read`, `ReadExt`, `Write`, `WriteExt`, `BufRead`, and `Seek`. But it does not export `BufReadExt` and `SeekExt`; those only appear in `async_std::io::prelude`. Export both `BufReadExt` and `SeekExt` from `async_std::io`. This makes it easier for code not using the prelude to import all of the I/O traits it uses from the same module.
1 parent 1785b90 commit ba24561

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/io/buf_read/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub trait BufReadExt: BufRead {
239239

240240
impl<T: BufRead + ?Sized> BufReadExt for T {}
241241

242-
pub fn read_until_internal<R: BufReadExt + ?Sized>(
242+
pub(crate) fn read_until_internal<R: BufReadExt + ?Sized>(
243243
mut reader: Pin<&mut R>,
244244
cx: &mut Context<'_>,
245245
byte: u8,

‎src/io/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,15 @@ cfg_std! {
275275
#[doc(inline)]
276276
pub use std::io::{Error, ErrorKind, IoSlice, IoSliceMut, Result, SeekFrom};
277277

278-
pub use buf_read::{BufRead,Lines,Split};
278+
pub use buf_read::*;
279279
pub use buf_reader::BufReader;
280280
pub use buf_writer::{BufWriter, IntoInnerError};
281281
pub use copy::copy;
282282
pub use cursor::Cursor;
283283
pub use empty::{empty, Empty};
284284
pub use read::*;
285285
pub use repeat::{repeat, Repeat};
286-
pub use seek::Seek;
286+
pub use seek::*;
287287
pub use sink::{sink, Sink};
288288
pub use write::*;
289289

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /