Skip to content

Commit 0ebc656

Browse files
authored
Change not enum to is struct
1 parent ea8e65f commit 0ebc656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/derivable_impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl<'tcx> LateLintPass<'tcx> for DerivableImpls {
8383
if !attrs.iter().any(|attr| attr.doc_str().is_some());
8484
if let child_attrs = cx.tcx.hir().attrs(impl_item_hir);
8585
if !child_attrs.iter().any(|attr| attr.doc_str().is_some());
86-
if !adt_def.is_enum();
86+
if adt_def.is_struct();
8787
then {
8888
if let TyKind::Path(QPath::Resolved(_, p)) = self_ty.kind {
8989
if let Some(PathSegment { args: Some(a), .. }) = p.segments.last() {

0 commit comments

Comments
 (0)