aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/de.rs b/src/de.rs
index 9d5a417..9b58606 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -568,7 +568,8 @@ impl<'de> de::Deserializer<'de> for ValueDeserializer<'de> {
match &self.value.e {
&E::InlineTable(ref values) | &E::DottedTable(ref values) => {
let extra_fields = values.iter()
- .filter_map(|(ref key, ref _val)| {
+ .filter_map(|key_value| {
+ let (ref key, ref _val) = *key_value;
if !fields.contains(&&(**key)) {
Some(key.clone())
} else {