diff options
| author | yukang <moorekang@gmail.com> | 2025-06-29 11:40:59 +0800 | 
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2025-07-10 09:25:56 +0800 | 
| commit | 93db9e7ee01d61cb97b4f7b3d61903477910cae2 (patch) | |
| tree | 1769ebc661756b170deb03ce2bc48c9616a89d9f /compiler/rustc_parse/src | |
| parent | e43d139a82620a268d3828a73e12a8679339e8f8 (diff) | |
| download | rust-93db9e7ee01d61cb97b4f7b3d61903477910cae2.tar.gz rust-93db9e7ee01d61cb97b4f7b3d61903477910cae2.zip  | |
Remove uncessary parens in closure body with unused lint
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 9ed7124a11c..d6cc98d505c 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2206,7 +2206,7 @@ impl<'a> Parser<'a> { if self.look_ahead(1, |t| *t == token::Bang) && self.look_ahead(2, |t| t.is_ident()) { return IsMacroRulesItem::Yes { has_bang: true }; - } else if self.look_ahead(1, |t| (t.is_ident())) { + } else if self.look_ahead(1, |t| t.is_ident()) { // macro_rules foo self.dcx().emit_err(errors::MacroRulesMissingBang { span: macro_rules_span,  | 
