Skip to content

Commit

Permalink
pacify clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk authored Nov 1, 2024
1 parent adf05a5 commit 951ca5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde_derive/src/internals/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ fn check_from_and_try_from(cx: &Ctxt, cont: &mut Container) {
fn check_name_conflicts(cx: &Ctxt, cont: &Container, derive: Derive) {
if let Derive::Deserialize = derive {
match &cont.data {
Data::Enum(variants) => check_variant_name_conflicts(cx, &variants),
Data::Enum(variants) => check_variant_name_conflicts(cx, variants),
Data::Struct(Style::Struct, fields) => check_field_name_conflicts(cx, fields),
_ => {}
}
Expand Down

0 comments on commit 951ca5a

Please sign in to comment.