summaryrefslogtreecommitdiffstats
path: root/src/source.rs
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2017-06-03 01:22:04 -0700
committerRyan Leckey <ryan@launchbadge.com>2017-06-03 01:22:04 -0700
commitfb30d87cf096d0816abc3c40c1ff3f1b8440ee74 (patch)
tree8b59b9ac3a488ae3c246e7313f995c8033738571 /src/source.rs
parenta12d8e5992289bbb9c50bc2d734132e1cfc2798b (diff)
Sources collect to HashMap instead of Value
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/source.rs b/src/source.rs
index 7519438..5db362e 100644
--- a/src/source.rs
+++ b/src/source.rs
@@ -1,9 +1,10 @@
use error::*;
use value::Value;
+use std::collections::HashMap;
/// Describes a generic _source_ of configuration properties.
pub trait Source {
/// Collect all configuration properties available from this source and return
- /// a top-level Value (which we expected to be a Table).
- fn collect(&self) -> Result<Value>;
+ /// a HashMap.
+ fn collect(&self) -> Result<HashMap<String, Value>>;
}