From b94170c7a9c764820f14b7e6bd78d80c709e5d06 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 13 May 2019 19:18:19 +0300 Subject: [PATCH] Make from_toml_value case sensitive TOML is case sensitive [0], so key values should not be lowercased. [0] https://github.com/toml-lang/toml#user-content-spec --- src/file/format/toml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file/format/toml.rs b/src/file/format/toml.rs index da7782f4..26dcb2ae 100644 --- a/src/file/format/toml.rs +++ b/src/file/format/toml.rs @@ -29,7 +29,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.to_lowercase().clone(), from_toml_value(uri, value)); + m.insert(key.clone(), from_toml_value(uri, value)); } Value::new(uri, m)