diff --git a/clippy_lints/src/crate_in_macro_def.rs b/clippy_lints/src/crate_in_macro_def.rs index ef2f3df10..e64c7f127 100644 --- a/clippy_lints/src/crate_in_macro_def.rs +++ b/clippy_lints/src/crate_in_macro_def.rs @@ -76,9 +76,8 @@ fn is_macro_export(attr: &Attribute) -> bool { if_chain! { if let AttrKind::Normal(attr_item, _) = &attr.kind; if let [segment] = attr_item.path.segments.as_slice(); - if segment.ident.name == sym::macro_export; then { - true + segment.ident.name == sym::macro_export } else { false }