summaryrefslogtreecommitdiffstats
path: root/src/de.rs
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2019-12-07 18:14:13 -0800
committerRyan Leckey <ryan@launchbadge.com>2019-12-07 18:14:13 -0800
commit8fb71a3051c0c09f37129d9c1884c778a4ea4cea (patch)
tree39e5f98f19b0633314ed9aca750e6b0263bf19a6 /src/de.rs
parent51ae442e74f0a9d99707a5887afa9159985ad104 (diff)
Remove automatic lowercase
Diffstat (limited to 'src/de.rs')
-rw-r--r--src/de.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de.rs b/src/de.rs
index 9611a21..215b97c 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -244,7 +244,7 @@ impl EnumAccess {
fn variant_deserializer(&self, name: &String) -> Result<StrDeserializer> {
self.variants
.iter()
- .find(|&s| s.to_lowercase() == name.to_lowercase())
+ .find(|&s| s == name)
.map(|&s| StrDeserializer(s))
.ok_or(self.no_constructor_error(name))
}