about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-12-19 15:42:44 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-12-19 15:42:44 -0800
commitf89b61ba3ada6f4e343437edc1f1d2a91ad9ad8a (patch)
treeb5d8bc70512725e6cf383d3dd6d3b5d377fb1bd6 /src/libstd/io
parent3906823765b1ec241df4906527a990ec945c4392 (diff)
downloadrust-f89b61ba3ada6f4e343437edc1f1d2a91ad9ad8a.tar.gz
rust-f89b61ba3ada6f4e343437edc1f1d2a91ad9ad8a.zip
Get comm_adapters building again
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;