summaryrefslogtreecommitdiffstats
path: root/src/file/nil.rs
blob: c9e799a11f1e7b1f387995d0352a014dc16ffea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 get(&self, _: &str) -> Option<Value> {
        None
    }
}