diff options
| author | Samuel Moelius <35515885+smoelius@users.noreply.github.com> | 2022-03-30 12:40:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-30 12:40:44 -0400 |
| commit | 75dc406e84122363c94e1faaae37472d23d20c29 (patch) | |
| tree | 5c9ca7308b3e75ba0eb9b252f4cf22bb9a13507a | |
| parent | abc221e7f66b495d2ea86ccdb200ee9f29cecaab (diff) | |
| download | rust-75dc406e84122363c94e1faaae37472d23d20c29.tar.gz rust-75dc406e84122363c94e1faaae37472d23d20c29.zip | |
Update clippy_lints/src/crate_in_macro_def.rs
Co-authored-by: llogiq <bogusandre@gmail.com>
| -rw-r--r-- | clippy_lints/src/crate_in_macro_def.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/crate_in_macro_def.rs b/clippy_lints/src/crate_in_macro_def.rs index ef2f3df105a..e64c7f127eb 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 } |
