aboutsummaryrefslogtreecommitdiff
path: root/base/src/dummy.rs
blob: 2a912352fd85c27cd03e8b76c3fbf09b4ecfd152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::iter;
use std::io::BufRead;

use event::Event;
use context::Context;

#[derive(Copy, Clone)]
pub struct Dummy;

impl ::Decode for Dummy {
    fn decode<'a>(&'a self,
                  _context: &'a Context,
                  _input: &'a mut BufRead)
                  -> Box<Iterator<Item = ::Result<Event<'a>>> + 'a> {
        Box::new(iter::empty())
    }
}