about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Moelius <35515885+smoelius@users.noreply.github.com>2022-03-30 12:40:44 -0400
committerGitHub <noreply@github.com>2022-03-30 12:40:44 -0400
commit75dc406e84122363c94e1faaae37472d23d20c29 (patch)
tree5c9ca7308b3e75ba0eb9b252f4cf22bb9a13507a
parentabc221e7f66b495d2ea86ccdb200ee9f29cecaab (diff)
downloadrust-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.rs3
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
         }