diff options
author | Ryan Leckey <ryan@launchbadge.com> | 2019-12-07 18:14:13 -0800 |
---|---|---|
committer | Ryan Leckey <ryan@launchbadge.com> | 2019-12-07 18:14:13 -0800 |
commit | 8fb71a3051c0c09f37129d9c1884c778a4ea4cea (patch) | |
tree | 39e5f98f19b0633314ed9aca750e6b0263bf19a6 /src/config.rs | |
parent | 51ae442e74f0a9d99707a5887afa9159985ad104 (diff) |
Remove automatic lowercase
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs index 7e031d0..e54daa2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -125,7 +125,7 @@ impl Config { ConfigKind::Mutable { ref mut defaults, .. } => { - defaults.insert(key.to_lowercase().parse()?, value.into()); + defaults.insert(key.parse()?, value.into()); } ConfigKind::Frozen => return Err(ConfigError::Frozen), @@ -142,7 +142,7 @@ impl Config { ConfigKind::Mutable { ref mut overrides, .. } => { - overrides.insert(key.to_lowercase().parse()?, value.into()); + overrides.insert(key.parse()?, value.into()); } ConfigKind::Frozen => return Err(ConfigError::Frozen), @@ -153,7 +153,7 @@ impl Config { pub fn get<'de, T: Deserialize<'de>>(&self, key: &str) -> Result<T> { // Parse the key into a path expression - let expr: path::Expression = key.to_lowercase().parse()?; + let expr: path::Expression = key.parse()?; // Traverse the cache using the path to (possibly) retrieve a value let value = expr.get(&self.cache).cloned(); |