Include missing_field in impl MapVisitor for &mut MapVisitor

This commit is contained in:
David Tolnay
2017-01-13 13:33:22 -08:00
parent bdba6fc5b0
commit 88a4ed9cd7
+7
View File
@@ -751,6 +751,13 @@ impl<'a, V_> MapVisitor for &'a mut V_ where V_: MapVisitor {
fn size_hint(&self) -> (usize, Option<usize>) {
(**self).size_hint()
}
#[inline]
fn missing_field<V>(&mut self, field: &'static str) -> Result<V, Self::Error>
where V: Deserialize
{
(**self).missing_field(field)
}
}
///////////////////////////////////////////////////////////////////////////////