Skip to content

Commit 5399c82

Browse files
committed
auto merge of #11081 : alexcrichton/rust/comm-adapters, r=huonw
I accidentally removed this module from compilation awhile back, this adds it back in. Closes #11076
2 parents 6023350 + f89b61b commit 5399c82

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/libstd/io/comm_adapters.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct PortReader {
3838
}
3939

4040
impl PortReader {
41-
pub fn new(port: Port<~[u8]>) -> PortReader<P> {
41+
pub fn new(port: Port<~[u8]>) -> PortReader {
4242
PortReader {
4343
buf: None,
4444
pos: 0,
@@ -94,7 +94,7 @@ pub struct ChanWriter {
9494
}
9595

9696
impl ChanWriter {
97-
pub fn new(chan: C) -> ChanWriter<C> {
97+
pub fn new(chan: Chan<~[u8]>) -> ChanWriter {
9898
ChanWriter { chan: chan }
9999
}
100100
}

src/libstd/io/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ pub mod signal;
335335
/// Utility implementations of Reader and Writer
336336
pub mod util;
337337

338+
/// Adapatation of Chan/Port types to a Writer/Reader type.
339+
pub mod comm_adapters;
340+
338341
/// The default buffer size for various I/O operations
339342
static DEFAULT_BUF_SIZE: uint = 1024 * 64;
340343

0 commit comments

Comments
 (0)