Mercurial > lbo > hg > localmr
view src/formats/fake.rs @ 76:8d84dcb8f264
Clean up fake.rs
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 07 Feb 2016 09:20:22 +0000 |
parents | fb6d8991bcc9 |
children | 72076befe75f |
line wrap: on
line source
#![allow(dead_code)] use formats::util::MRSinkGenerator; pub struct BufWriterSinkGen { // bogus field so the struct isn't empty i: i32, } impl MRSinkGenerator for BufWriterSinkGen { type Sink = Vec<u8>; fn new_output(&mut self, _: &String) -> Self::Sink { Vec::new() } }