Merge pull request #599 from TheCatPlusPlus/master
Explictly discard result of visiting IgnoredAny
This commit is contained in:
commit
c8c9f7d96c
@ -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>()); }
|
||||
})
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user