aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAzriel Hoh <azriel91@gmail.com>2018-11-17 13:47:23 +1300
committerAzriel Hoh <azriel91@gmail.com>2018-11-17 14:19:14 +1300
commitdf7ec3a4b66433118f09b12d5f32a10368a57852 (patch)
tree9b182ffbe2c1e60f9787d160318ce5acee02deb3 /src
parent438157e662d2092dd49513a9791aa75788180c35 (diff)
downloadmilf-rs-df7ec3a4b66433118f09b12d5f32a10368a57852.tar.gz
milf-rs-df7ec3a4b66433118f09b12d5f32a10368a57852.zip
Maintain backward compatibility with Rust 1.15, take 3.
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 {