From ede21a307552cbd265721f3cc4caf8952c6fdbb1 Mon Sep 17 00:00:00 2001 From: Qeenon Date: Mon, 25 Jan 2021 12:01:46 +0400 Subject: fixes #210 avoid possible conflicts by not using AsRef trait --- serde_dhall/src/deserialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3