diff options
author | Ryan Leckey <ryan@launchbadge.com> | 2017-06-13 19:02:33 -0700 |
---|---|---|
committer | Ryan Leckey <ryan@launchbadge.com> | 2017-06-13 19:02:33 -0700 |
commit | 01583791f785e2883dc19b92c8c97b5fd31af0b6 (patch) | |
tree | f8e8be182f269cf2bcda3921f06014cd9bd7cb27 /src/file/format/toml.rs | |
parent | d5d790b94ea041c8d490f05e2b493a360c9477ff (diff) |
Ensure config keys are case insensitive
Diffstat (limited to 'src/file/format/toml.rs')
-rw-r--r-- | src/file/format/toml.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file/format/toml.rs b/src/file/format/toml.rs index f4a4196..633f39e 100644 --- a/src/file/format/toml.rs +++ b/src/file/format/toml.rs @@ -45,7 +45,7 @@ fn from_toml_value(uri: Option<&String>, value: &toml::Value) -> Value { let mut m = HashMap::new(); for (key, value) in table { - m.insert(key.clone(), from_toml_value(uri, value)); + m.insert(key.to_lowercase().clone(), from_toml_value(uri, value)); } Value::new(uri, m) |