mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
Remove unnecessary parens in closure
This commit is contained in:
parent
7c3de9df36
commit
d8b424cb4c
1 changed files with 1 additions and 1 deletions
|
@ -195,5 +195,5 @@ fn comma_wrapper(ctx: &CompletionContext<'_>) -> Option<(impl Fn(&str) -> String
|
|||
matches!(prev_token_kind, SyntaxKind::COMMA | SyntaxKind::L_PAREN | SyntaxKind::PIPE);
|
||||
let leading = if has_leading_comma { "" } else { ", " };
|
||||
|
||||
Some((move |label: &_| (format!("{leading}{label}{trailing}")), param.text_range()))
|
||||
Some((move |label: &_| format!("{leading}{label}{trailing}"), param.text_range()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue