Address match_ref_pats lint in serde_derive

This commit is contained in:
David Tolnay 2018-12-31 22:47:48 -05:00
parent b8adc5ffa2
commit 9b4edb3a1d
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -299,8 +299,8 @@ fn serialize_struct_as_struct(
let type_name = cattrs.name().serialize_name();
let additional_field_count: usize = match cattrs.tag() {
&attr::TagType::Internal { ref tag } => {
let additional_field_count: usize = match *cattrs.tag() {
attr::TagType::Internal { ref tag } => {
let func = StructTrait::SerializeStruct.serialize_field(Span::call_site());
serialize_fields.insert(
0,