summaryrefslogtreecommitdiffstats
path: root/src/file/nil.rs
blob: f6d801af99a5be0393126f35e89878152f907595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::collections::HashMap;

use source::Source;
use value::Value;

// Nil source that does nothing to easily allow for optional files
pub struct Nil {}

impl Source for Nil {
    fn collect(&self) -> HashMap<String, Value> {
        HashMap::new()
    }
}