Remove unnecessary parens in closure
This commit is contained in:
parent
638329b86d
commit
a203e4118e
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