Skip to content

Commit 75dc406

Browse files
smoeliusllogiq
andauthored
Update clippy_lints/src/crate_in_macro_def.rs
Co-authored-by: llogiq <[email protected]>
1 parent abc221e commit 75dc406

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/crate_in_macro_def.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ fn is_macro_export(attr: &Attribute) -> bool {
7676
if_chain! {
7777
if let AttrKind::Normal(attr_item, _) = &attr.kind;
7878
if let [segment] = attr_item.path.segments.as_slice();
79-
if segment.ident.name == sym::macro_export;
8079
then {
81-
true
80+
segment.ident.name == sym::macro_export
8281
} else {
8382
false
8483
}

0 commit comments

Comments
 (0)