Merge pull request #599 from TheCatPlusPlus/master

Explictly discard result of visiting IgnoredAny
This commit is contained in:
David Tolnay 2016-10-21 23:36:57 -07:00 committed by GitHub
commit c8c9f7d96c

View File

@ -881,7 +881,7 @@ fn deserialize_map(
.map(|&(_, ref name)| {
quote! {
__Field::#name => {
try!(visitor.visit_value::<_serde::de::impls::IgnoredAny>());
let _ = try!(visitor.visit_value::<_serde::de::impls::IgnoredAny>());
}
}
})
@ -892,7 +892,7 @@ fn deserialize_map(
None
} else {
Some(quote! {
_ => { try!(visitor.visit_value::<_serde::de::impls::IgnoredAny>()); }
_ => { let _ = try!(visitor.visit_value::<_serde::de::impls::IgnoredAny>()); }
})
};