summaryrefslogtreecommitdiffstats
path: root/src/file/format/mod.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/file/format/mod.rs
parenta12d8e5992289bbb9c50bc2d734132e1cfc2798b (diff)
Sources collect to HashMap instead of Value
Diffstat (limited to 'src/file/format/mod.rs')
-rw-r--r--src/file/format/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs
index 5c97a7f..5c36815 100644
--- a/src/file/format/mod.rs
+++ b/src/file/format/mod.rs
@@ -1,6 +1,7 @@
use source::Source;
use value::Value;
use std::error::Error;
+use std::collections::HashMap;
#[cfg(feature = "toml")]
mod toml;
@@ -45,7 +46,7 @@ impl FileFormat {
// TODO: pub(crate)
#[doc(hidden)]
#[allow(unused_variables)]
- pub fn parse(&self, uri: Option<&String>, text: &str, namespace: Option<&String>) -> Result<Value, Box<Error>> {
+ pub fn parse(&self, uri: Option<&String>, text: &str, namespace: Option<&String>) -> Result<HashMap<String, Value>, Box<Error>> {
match *self {
#[cfg(feature = "toml")]
FileFormat::Toml => toml::parse(uri, text, namespace),