Skip to content

Commit 43f4f39

Browse files
committed
fix missing export for the return value
1 parent 61eb52c commit 43f4f39

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

Diff for: src/io/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
//!
106106
//! ```no_run
107107
//! use async_std::fs::File;
108-
//! use async_std::io::BufWriter;
109108
//! use async_std::io::prelude::*;
109+
//! use async_std::io::BufWriter;
110110
//!
111111
//! # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
112112
//! #
@@ -116,8 +116,8 @@
116116
//!
117117
//! // write a byte to the buffer
118118
//! writer.write(&[42]).await?;
119-
//!
120119
//! } // the buffer is flushed once writer goes out of scope
120+
//! //
121121
//! #
122122
//! # Ok(()) }) }
123123
//! ```
@@ -281,7 +281,7 @@ cfg_std! {
281281
pub use copy::copy;
282282
pub use cursor::Cursor;
283283
pub use empty::{empty, Empty};
284-
pub use read::Read;
284+
pub use read::*;
285285
pub use repeat::{repeat, Repeat};
286286
pub use seek::Seek;
287287
pub use sink::{sink, Sink};

Diff for: src/io/read/mod.rs

+10-6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ use std::mem;
1717

1818
use crate::io::IoSliceMut;
1919

20+
pub use take::Take;
21+
pub use bytes::Bytes;
22+
pub use chain::Chain;
23+
2024
extension_trait! {
2125
use std::pin::Pin;
2226
use std::ops::{Deref, DerefMut};
@@ -301,11 +305,11 @@ extension_trait! {
301305
# Ok(()) }) }
302306
```
303307
"#]
304-
fn take(self, limit: u64) -> take::Take<Self>
308+
fn take(self, limit: u64) -> Take<Self>
305309
where
306310
Self: Sized,
307311
{
308-
take::Take { inner: self, limit }
312+
Take { inner: self, limit }
309313
}
310314

311315
#[doc = r#"
@@ -377,8 +381,8 @@ extension_trait! {
377381
# Ok(()) }) }
378382
```
379383
"#]
380-
fn bytes(self) -> bytes::Bytes<Self> where Self: Sized {
381-
bytes::Bytes { inner: self }
384+
fn bytes(self) -> Bytes<Self> where Self: Sized {
385+
Bytes { inner: self }
382386
}
383387

384388
#[doc = r#"
@@ -413,8 +417,8 @@ extension_trait! {
413417
# Ok(()) }) }
414418
```
415419
"#]
416-
fn chain<R: Read>(self, next: R) -> chain::Chain<Self, R> where Self: Sized {
417-
chain::Chain { first: self, second: next, done_first: false }
420+
fn chain<R: Read>(self, next: R) -> Chain<Self, R> where Self: Sized {
421+
Chain { first: self, second: next, done_first: false }
418422
}
419423

420424
}

0 commit comments

Comments
 (0)