blob: f494af488a135df7aba7a1ff1261ed730027123c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::borrow::Cow;
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<'a>(&self, _: &str) -> Option<Cow<'a, Value>> {
None
}
}
|