Update clippy_lints/src/crate_in_macro_def.rs

Co-authored-by: llogiq <bogusandre@gmail.com>
This commit is contained in:
Samuel Moelius 2022-03-30 12:40:44 -04:00 committed by GitHub
parent abc221e7f6
commit 75dc406e84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}