mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
Update clippy_lints/src/crate_in_macro_def.rs
Co-authored-by: llogiq <bogusandre@gmail.com>
This commit is contained in:
parent
abc221e7f6
commit
75dc406e84
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue