Skip to content

Commit

Permalink
Update shootout-mandelbrot to work with the new io::Writer
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Dec 25, 2012
1 parent 6dbb025 commit c4720a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/bench/shootout-mandelbrot.rs
Expand Up @@ -99,11 +99,11 @@ fn chanmb(i: uint, size: uint, ch: oldcomm::Chan<Line>) -> ()
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<oldcomm::Chan<Line>>, size: uint)
Expand Down

0 comments on commit c4720a7

Please sign in to comment.