summaryrefslogtreecommitdiffstats
path: root/src/source.rs
diff options
context:
space:
mode:
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>>;
}