From c4720a73bbe69db14c574555a423c1045086241d Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 24 Dec 2012 13:29:36 -0800 Subject: [PATCH] Update shootout-mandelbrot to work with the new io::Writer --- src/test/bench/shootout-mandelbrot.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/bench/shootout-mandelbrot.rs b/src/test/bench/shootout-mandelbrot.rs index b6c1baac41250..f85d6f6fdaaac 100644 --- a/src/test/bench/shootout-mandelbrot.rs +++ b/src/test/bench/shootout-mandelbrot.rs @@ -99,11 +99,11 @@ fn chanmb(i: uint, size: uint, ch: oldcomm::Chan) -> () type devnull = {dn: int}; impl devnull: io::Writer { - fn write(_b: &[const u8]) {} - fn seek(_i: int, _s: io::SeekStyle) {} - fn tell() -> uint {0_u} - fn flush() -> int {0} - fn get_type() -> io::WriterType { io::File } + fn write(&self, _b: &[const u8]) {} + fn seek(&self, _i: int, _s: io::SeekStyle) {} + fn tell(&self) -> uint {0_u} + fn flush(&self) -> int {0} + fn get_type(&self) -> io::WriterType { io::File } } fn writer(path: ~str, writech: oldcomm::Chan>, size: uint)