File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub struct PortReader {
3838}
3939
4040impl 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
9696impl ChanWriter {
97- pub fn new ( chan : C ) -> ChanWriter < C > {
97+ pub fn new ( chan : Chan < ~ [ u8 ] > ) -> ChanWriter {
9898 ChanWriter { chan : chan }
9999 }
100100}
Original file line number Diff line number Diff line change @@ -335,6 +335,9 @@ pub mod signal;
335335/// Utility implementations of Reader and Writer
336336pub 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
339342static DEFAULT_BUF_SIZE : uint = 1024 * 64 ;
340343
You can’t perform that action at this time.
0 commit comments