diff options
author | Ryan Leckey <ryan@launchbadge.com> | 2017-06-03 01:22:04 -0700 |
---|---|---|
committer | Ryan Leckey <ryan@launchbadge.com> | 2017-06-03 01:22:04 -0700 |
commit | fb30d87cf096d0816abc3c40c1ff3f1b8440ee74 (patch) | |
tree | 8b59b9ac3a488ae3c246e7313f995c8033738571 /src/file/mod.rs | |
parent | a12d8e5992289bbb9c50bc2d734132e1cfc2798b (diff) |
Sources collect to HashMap instead of Value
Diffstat (limited to 'src/file/mod.rs')
-rw-r--r-- | src/file/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file/mod.rs b/src/file/mod.rs index 7534ddb..dbb80b6 100644 --- a/src/file/mod.rs +++ b/src/file/mod.rs @@ -4,6 +4,7 @@ pub mod source; use source::Source; use error::*; use value::Value; +use std::collections::HashMap; use self::source::FileSource; pub use self::format::FileFormat; @@ -58,7 +59,7 @@ impl<T: FileSource> File<T> { } impl<T: FileSource> Source for File<T> { - fn collect(&self) -> Result<Value> { + fn collect(&self) -> Result<HashMap<String, Value>> { // Coerce the file contents to a string let (uri, contents) = self.source.resolve(self.format).map_err(|err| { ConfigError::Foreign(err) |