Skip to content

Commit 7ce0d30

Browse files
committed
Update shootout-mandelbrot to work with the new io::Writer
1 parent 46122bf commit 7ce0d30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/bench/shootout-mandelbrot.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ fn chanmb(i: uint, size: uint, ch: oldcomm::Chan<Line>) -> ()
9999
type devnull = {dn: int};
100100

101101
impl devnull: io::Writer {
102-
fn write(_b: &[const u8]) {}
103-
fn seek(_i: int, _s: io::SeekStyle) {}
104-
fn tell() -> uint {0_u}
105-
fn flush() -> int {0}
106-
fn get_type() -> io::WriterType { io::File }
102+
fn write(&self, _b: &[const u8]) {}
103+
fn seek(&self, _i: int, _s: io::SeekStyle) {}
104+
fn tell(&self) -> uint {0_u}
105+
fn flush(&self) -> int {0}
106+
fn get_type(&self) -> io::WriterType { io::File }
107107
}
108108

109109
fn writer(path: ~str, writech: oldcomm::Chan<oldcomm::Chan<Line>>, size: uint)

0 commit comments

Comments
 (0)