about summary refs log tree commit diff
path: root/compiler/rustc_attr/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-12 11:52:30 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2024-10-23 22:15:59 +0200
commitdab76eccdfbb6f7b4b445ad05ba4ef004c43e130 (patch)
tree93d95a7b50a79dde7cb60f8b450d9075f2439787 /compiler/rustc_attr/src
parentbe01dabfefd2daa4574b974f571c7852085d60cb (diff)
downloadrust-dab76eccdfbb6f7b4b445ad05ba4ef004c43e130.tar.gz
rust-dab76eccdfbb6f7b4b445ad05ba4ef004c43e130.zip
fix a couple clippy:complexitys
 double_parens
 filter_map_identity
 needless_question_mark
 redundant_guards
Diffstat (limited to 'compiler/rustc_attr/src')
-rw-r--r--compiler/rustc_attr/src/builtin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs
index e412417a9e9..537d8e04531 100644
--- a/compiler/rustc_attr/src/builtin.rs
+++ b/compiler/rustc_attr/src/builtin.rs
@@ -619,11 +619,11 @@ pub fn eval_condition(
                 // we can't use `try_gate_cfg` as symbols don't differentiate between `r#true`
                 // and `true`, and we want to keep the former working without feature gate
                 gate_cfg(
-                    &((
+                    &(
                         if *b { kw::True } else { kw::False },
                         sym::cfg_boolean_literals,
                         |features: &Features| features.cfg_boolean_literals(),
-                    )),
+                    ),
                     cfg.span(),
                     sess,
                     features,