We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea8e65f commit 0ebc656Copy full SHA for 0ebc656
clippy_lints/src/derivable_impls.rs
@@ -83,7 +83,7 @@ impl<'tcx> LateLintPass<'tcx> for DerivableImpls {
83
if !attrs.iter().any(|attr| attr.doc_str().is_some());
84
if let child_attrs = cx.tcx.hir().attrs(impl_item_hir);
85
if !child_attrs.iter().any(|attr| attr.doc_str().is_some());
86
- if !adt_def.is_enum();
+ if adt_def.is_struct();
87
then {
88
if let TyKind::Path(QPath::Resolved(_, p)) = self_ty.kind {
89
if let Some(PathSegment { args: Some(a), .. }) = p.segments.last() {
0 commit comments