summaryrefslogtreecommitdiffstats
path: root/src/file/format/mod.rs
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2017-06-22 15:57:14 -0700
committerRyan Leckey <ryan@launchbadge.com>2017-06-22 15:57:14 -0700
commit159bb52c595384fed44a2c669198d50f2a758a9a (patch)
tree6553ceed3e172115fe8e682bbfc286bf8fd0f004 /src/file/format/mod.rs
parenta9eecf075cf01f15ef05fea3f1edaa189446d055 (diff)
Remove `namespace` option for File
Diffstat (limited to 'src/file/format/mod.rs')
-rw-r--r--src/file/format/mod.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs
index 3fc15a6..1988513 100644
--- a/src/file/format/mod.rs
+++ b/src/file/format/mod.rs
@@ -57,18 +57,17 @@ impl FileFormat {
#[allow(unused_variables)]
pub fn parse(&self,
uri: Option<&String>,
- text: &str,
- namespace: Option<&String>)
+ text: &str)
-> Result<HashMap<String, Value>, Box<Error>> {
match *self {
#[cfg(feature = "toml")]
- FileFormat::Toml => toml::parse(uri, text, namespace),
+ FileFormat::Toml => toml::parse(uri, text),
#[cfg(feature = "json")]
- FileFormat::Json => json::parse(uri, text, namespace),
+ FileFormat::Json => json::parse(uri, text),
#[cfg(feature = "yaml")]
- FileFormat::Yaml => yaml::parse(uri, text, namespace),
+ FileFormat::Yaml => yaml::parse(uri, text),
}
}
}