summaryrefslogtreecommitdiffstats
path: root/src/source.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-02-02 12:03:55 -0800
committerRyan Leckey <leckey.ryan@gmail.com>2017-02-02 12:03:55 -0800
commit115fe07e2c11aa72e91a5ce9b028ed1c1ff7d806 (patch)
tree48ccdb6417c3c7c9593a9c447157e3eba724f1a8 /src/source.rs
parentd913d951f1ff040a543f9ac859a0f300ce4d8434 (diff)
Add support for Table/Array and deep merging of configuration values
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/source.rs b/src/source.rs
index bc1dd40..e136176 100644
--- a/src/source.rs
+++ b/src/source.rs
@@ -1,10 +1,10 @@
use std::error::Error;
-use std::borrow::Cow;
+use std::collections::HashMap;
use value::Value;
pub trait Source {
- fn get<'a>(&self, key: &str) -> Option<Cow<'a, Value>>;
+ fn collect(&self) -> HashMap<String, Value>;
}
pub trait SourceBuilder {