summaryrefslogtreecommitdiff
path: root/serde_dhall/src
diff options
context:
space:
mode:
authorQeenon2021-01-25 12:01:46 +0400
committerQeenon2021-01-25 12:01:46 +0400
commitede21a307552cbd265721f3cc4caf8952c6fdbb1 (patch)
treed6a6f2745160ac90278b949a6d8efce70c49a183 /serde_dhall/src
parent1397a53da0a6aa6d75b687c275baa21d3b99ed64 (diff)
fixes #210 avoid possible conflicts by not using AsRef trait
Diffstat (limited to 'serde_dhall/src')
-rw-r--r--serde_dhall/src/deserialize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/serde_dhall/src/deserialize.rs b/serde_dhall/src/deserialize.rs
index 3fb06f9..10aac4b 100644
--- a/serde_dhall/src/deserialize.rs
+++ b/serde_dhall/src/deserialize.rs
@@ -138,7 +138,7 @@ impl<'de: 'a, 'a> serde::Deserializer<'de> for Deserializer<'a> {
Optional(None) => visitor.visit_none(),
Optional(Some(x)) => visitor.visit_some(val(x)),
Record(m) => visitor.visit_map(MapDeserializer::new(
- m.iter().map(|(k, v)| (k.as_ref(), val(v))),
+ m.iter().map(|(k, v)| (k.as_str(), val(v))),
)),
Union(field_name, Some(x)) => visitor.visit_enum(
MapAccessDeserializer::new(MapDeserializer::new(