Skip to content
Myr

Revert "pacify clippy"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit 951ca5ace0ca0abf9b44e0d6c76005fbd3b77c5c.

authored by David Tolnay · committed by David Tolnay · parent b1353a9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:serde_derive/src/internals/check.rs+1 added-1 removed
481 unmodified lines
482// Checks that aliases does not repeated483fn check_name_conflicts(cx: &Ctxt, cont: &Container, derive: Derive) {484 if let Derive::Deserialize = derive {485 match &cont.data {486 Data::Enum(variants) => check_variant_name_conflicts(cx, variants),486 Data::Enum(variants) => check_variant_name_conflicts(cx, &variants),487 Data::Struct(Style::Struct, fields) => check_field_name_conflicts(cx, fields),488 _ => {}489 }490 }
121 unmodified lines