Address match_ref_pats lint in serde_derive
This commit is contained in:
parent
b8adc5ffa2
commit
9b4edb3a1d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user