diff options
author | Azriel Hoh <azriel91@gmail.com> | 2018-11-17 13:47:23 +1300 |
---|---|---|
committer | Azriel Hoh <azriel91@gmail.com> | 2018-11-17 14:19:14 +1300 |
commit | df7ec3a4b66433118f09b12d5f32a10368a57852 (patch) | |
tree | 9b182ffbe2c1e60f9787d160318ce5acee02deb3 /src | |
parent | 438157e662d2092dd49513a9791aa75788180c35 (diff) | |
download | milf-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.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |