Skip to content

Commit

Permalink
Revert "pacify clippy"
Browse files Browse the repository at this point in the history
This reverts commit 951ca5a.
  • Loading branch information
dtolnay committed Nov 11, 2024
1 parent b1353a9 commit a20e924
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 a20e924

Please sign in to comment.