diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-07-30 13:20:36 -0700 |
---|---|---|
committer | Ryan Leckey <leckey.ryan@gmail.com> | 2017-07-30 13:20:36 -0700 |
commit | 14224be23dc2f253a240b85214927d97e1160669 (patch) | |
tree | 6f5b02b26aef5cf37bb14f32b9048165b67109ce /src/file/format/mod.rs | |
parent | 71f4b182d1e56febda64bd620ae0e0f65de333cd (diff) |
Remove ConfigResult; close #36
Diffstat (limited to 'src/file/format/mod.rs')
-rw-r--r-- | src/file/format/mod.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs index 5aa1acb..a90dfda 100644 --- a/src/file/format/mod.rs +++ b/src/file/format/mod.rs @@ -63,10 +63,11 @@ impl FileFormat { // TODO: pub(crate) #[doc(hidden)] #[allow(unused_variables)] - pub fn parse(&self, - uri: Option<&String>, - text: &str) - -> Result<HashMap<String, Value>, Box<Error + Send + Sync>> { + pub fn parse( + &self, + uri: Option<&String>, + text: &str, + ) -> Result<HashMap<String, Value>, Box<Error + Send + Sync>> { match *self { #[cfg(feature = "toml")] FileFormat::Toml => toml::parse(uri, text), |