diff options
author | Eric Huss <eric@huss.org> | 2018-07-11 00:13:47 -0700 |
---|---|---|
committer | Eric Huss <eric@huss.org> | 2018-07-16 09:10:38 -0700 |
commit | 2b6e286fb6244690a6572ebde4e139cbf7a52053 (patch) | |
tree | da35434cfde29b8b3aa20c46dacbad3677f87894 | |
parent | 9796059c58ec315dfc9b4ed0ba37c9e9318cb3fc (diff) | |
download | milf-rs-2b6e286fb6244690a6572ebde4e139cbf7a52053.tar.gz milf-rs-2b6e286fb6244690a6572ebde4e139cbf7a52053.zip |
Support older rustc.
-rw-r--r-- | src/de.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1179,12 +1179,12 @@ impl<'a> Deserializer<'a> { values.push((key, value)); return Ok(()); } - match values.iter_mut().find(|(k, _)| *k == key) { - Some((_, Value { e: E::InlineTable(ref mut v), .. })) => { + match values.iter_mut().find(|&&mut (ref k, _)| *k == key) { + Some(&mut (_, Value { e: E::InlineTable(ref mut v), .. })) => { return self.add_dotted_key(key_parts, value, v); } - Some((_, Value { start, .. })) => { - return Err(self.error(*start, ErrorKind::DottedKeyInvalidType)); + Some(&mut (_, Value { start, .. })) => { + return Err(self.error(start, ErrorKind::DottedKeyInvalidType)); } None => {} } |