Skip to content

Commit 3ced812

Browse files
authored
Merge pull request #55 from oconnor663/read_once
rename Read to ReadOnce and expose it
2 parents eecf3d1 + 6789527 commit 3ced812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/io/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Contains various combinators to work with I/O objects and type definitions
44
//! as well.
55
6-
use std::io::{self, Read, Write};
6+
use std::io;
77

88
use futures::{BoxFuture, Async, Poll};
99
use futures::stream::BoxStream;
@@ -44,7 +44,7 @@ pub use self::copy::{copy, Copy};
4444
pub use self::flush::{flush, Flush};
4545
pub use self::read_exact::{read_exact, ReadExact};
4646
pub use self::read_to_end::{read_to_end, ReadToEnd};
47-
pub use self::read::read;
47+
pub use self::read::{read, Read};
4848
pub use self::read_until::{read_until, ReadUntil};
4949
pub use self::split::{ReadHalf, WriteHalf};
5050
pub use self::window::Window;
@@ -61,7 +61,7 @@ pub use self::write_all::{write_all, WriteAll};
6161
/// value that indicates "would block" the current future's task is arranged to
6262
/// receive a notification when the method would otherwise not indicate that it
6363
/// would block.
64-
pub trait Io: Read + Write {
64+
pub trait Io: io::Read + io::Write {
6565
/// Tests to see if this I/O object may be readable.
6666
///
6767
/// This method returns an `Async<()>` indicating whether the object

0 commit comments

Comments
 (0)