From 5bcf6f7cb64469339527a0f10563006c31854682 Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Sat, 17 Nov 2018 09:18:43 +1300 Subject: [PATCH] Maintain compatibility with Rust 1.15 Issue #225 --- src/de.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de.rs b/src/de.rs index c7e8b34..869f7ae 100644 --- a/src/de.rs +++ b/src/de.rs @@ -558,9 +558,9 @@ impl<'de> de::Deserializer<'de> for ValueDeserializer<'de> { } match &self.value.e { - E::InlineTable(values) | E::DottedTable(values) => { + &E::InlineTable(ref values) | &E::DottedTable(ref values) => { let extra_fields = values.iter() - .filter_map(|(key, _val)| { + .filter_map(|(ref key, ref _val)| { if !fields.contains(&&(**key)) { Some(key.clone()) } else {