Fix unused_parens lint

These are left over from a series of unfortunate rustfmt interactions.
ee75e6c0e9 (diff-c052b162f01a664f8184ef1855d1f1cfL767-R735)
cc2558b0dc (diff-c052b162f01a664f8184ef1855d1f1cfL733-R738)
9f38ca032e (diff-c052b162f01a664f8184ef1855d1f1cfL779-R782)
This commit is contained in:
David Tolnay 2020-01-25 00:05:07 -08:00
parent dbf1f9ab8f
commit cb1632e957
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -870,9 +870,9 @@ fn serialize_struct_variant<'a>(
}
let struct_trait = match context {
StructVariant::ExternallyTagged { .. } => (StructTrait::SerializeStructVariant),
StructVariant::ExternallyTagged { .. } => StructTrait::SerializeStructVariant,
StructVariant::InternallyTagged { .. } | StructVariant::Untagged => {
(StructTrait::SerializeStruct)
StructTrait::SerializeStruct
}
};