summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2021-01-25 13:33:28 +0000
committerGitHub2021-01-25 13:33:28 +0000
commit8d9ed70d37a6086e1f5983781f1dcc895568f8da (patch)
treed6a6f2745160ac90278b949a6d8efce70c49a183
parent1397a53da0a6aa6d75b687c275baa21d3b99ed64 (diff)
parentede21a307552cbd265721f3cc4caf8952c6fdbb1 (diff)
Merge pull request #211 from Qeenon/mawa
fixes #210 avoid possible conflicts by not using AsRef trait
-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(