Resolve clippy question_mark lint

This commit is contained in:
David Tolnay 2020-03-05 19:48:07 -08:00
parent 27c283ab53
commit 1894cb703f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -310,12 +310,7 @@ fn deserialize_in_place_body(cont: &Container, params: &Parameters) -> Option<St
let code = match &cont.data {
Data::Struct(Style::Struct, fields) => {
if let Some(code) = deserialize_struct_in_place(None, params, fields, &cont.attrs, None)
{
code
} else {
return None;
}
deserialize_struct_in_place(None, params, fields, &cont.attrs, None)?
}
Data::Struct(Style::Tuple, fields) | Data::Struct(Style::Newtype, fields) => {
deserialize_tuple_in_place(None, params, fields, &cont.attrs, None)