From f89b61ba3ada6f4e343437edc1f1d2a91ad9ad8a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 19 Dec 2013 15:42:44 -0800 Subject: [PATCH] Get comm_adapters building again I accidentally removed this module from compilation awhile back, this adds it back in. Closes #11076 --- src/libstd/io/comm_adapters.rs | 4 ++-- src/libstd/io/mod.rs | 3 +++ 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

{ + 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 { + 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 @@ /// 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;