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/yaml.rs | |
parent | 71f4b182d1e56febda64bd620ae0e0f65de333cd (diff) |
Remove ConfigResult; close #36
Diffstat (limited to 'src/file/format/yaml.rs')
-rw-r--r-- | src/file/format/yaml.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/file/format/yaml.rs b/src/file/format/yaml.rs index 9bcf9d4..87240ac 100644 --- a/src/file/format/yaml.rs +++ b/src/file/format/yaml.rs @@ -6,7 +6,10 @@ use std::collections::HashMap; use std::mem; use value::{Value, ValueKind}; -pub fn parse(uri: Option<&String>, text: &str) -> Result<HashMap<String, Value>, Box<Error + Send + Sync>> { +pub fn parse( + uri: Option<&String>, + text: &str, +) -> Result<HashMap<String, Value>, Box<Error + Send + Sync>> { // Parse a YAML object from file let mut docs = yaml::YamlLoader::load_from_str(text)?; let root = match docs.len() { |