We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc221e commit 75dc406Copy full SHA for 75dc406
clippy_lints/src/crate_in_macro_def.rs
@@ -76,9 +76,8 @@ fn is_macro_export(attr: &Attribute) -> bool {
76
if_chain! {
77
if let AttrKind::Normal(attr_item, _) = &attr.kind;
78
if let [segment] = attr_item.path.segments.as_slice();
79
- if segment.ident.name == sym::macro_export;
80
then {
81
- true
+ segment.ident.name == sym::macro_export
82
} else {
83
false
84
}
0 commit comments