Maintain compatibility with Rust 1.15

Issue #225
This commit is contained in:
Azriel Hoh 2018-11-17 09:18:43 +13:00
parent 1656e2e51d
commit 5bcf6f7cb6

View file

@ -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 {