diff options
author | Azriel Hoh <azriel91@gmail.com> | 2018-11-17 09:18:43 +1300 |
---|---|---|
committer | Azriel Hoh <azriel91@gmail.com> | 2018-11-17 13:36:38 +1300 |
commit | 45ab620a59443dc6c3e6dae19bf5c09c222f21d4 (patch) | |
tree | ff2930dc023f7cf5249e9b7f5844cd23563f5c2a | |
parent | 2907bd1953b15c81d4e7bfd1b060a9c9d947c2e4 (diff) | |
download | milf-rs-45ab620a59443dc6c3e6dae19bf5c09c222f21d4.tar.gz milf-rs-45ab620a59443dc6c3e6dae19bf5c09c222f21d4.zip |
Maintain compatibility with Rust 1.15
Issue #225
-rw-r--r-- | src/de.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |