summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-12-20 04:36:32 -0800
committerbors <bors@rust-lang.org>2013-12-20 04:36:32 -0800
commit5399c82d56bcd276a026d6fdd2e2b14523c6e01f (patch)
tree64130bdbf6bcd09edd2ba3273df572d8b472b7c8 /src/libstd/io
parent6023350082333b9d785ea79810e1d90277c04106 (diff)
parentf89b61ba3ada6f4e343437edc1f1d2a91ad9ad8a (diff)
downloadrust-5399c82d56bcd276a026d6fdd2e2b14523c6e01f.tar.gz
rust-5399c82d56bcd276a026d6fdd2e2b14523c6e01f.zip
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
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/comm_adapters.rs4
-rw-r--r--src/libstd/io/mod.rs3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/libstd/io/comm_adapters.rs b/src/libstd/io/comm_adapters.rs
index 7f94af8307e..7a78800c33d 100644
--- a/src/libstd/io/comm_adapters.rs
+++ b/src/libstd/io/comm_adapters.rs
@@ -38,7 +38,7 @@ pub struct PortReader {
 }
 
 impl PortReader {
-    pub fn new(port: Port<~[u8]>) -> PortReader<P> {
+    pub fn new(port: Port<~[u8]>) -> PortReader {
         PortReader {
             buf: None,
             pos: 0,
@@ -94,7 +94,7 @@ pub struct ChanWriter {
 }
 
 impl ChanWriter {
-    pub fn new(chan: C) -> ChanWriter<C> {
+    pub fn new(chan: Chan<~[u8]>) -> ChanWriter {
         ChanWriter { chan: chan }
     }
 }
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 2e9056a6aee..239c6bc6a08 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -335,6 +335,9 @@ pub mod signal;
 /// Utility implementations of Reader and Writer
 pub mod util;
 
+/// Adapatation of Chan/Port types to a Writer/Reader type.
+pub mod comm_adapters;
+
 /// The default buffer size for various I/O operations
 static DEFAULT_BUF_SIZE: uint = 1024 * 64;