Skip to content

Commit a203e41

Browse files
committed
Remove unnecessary parens in closure
1 parent 638329b commit a203e41

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/ide-completion/src/completions

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide-completion/src/completions/fn_param.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,5 @@ fn comma_wrapper(ctx: &CompletionContext<'_>) -> Option<(impl Fn(&str) -> String
195195
matches!(prev_token_kind, SyntaxKind::COMMA | SyntaxKind::L_PAREN | SyntaxKind::PIPE);
196196
let leading = if has_leading_comma { "" } else { ", " };
197197

198-
Some((move |label: &_| (format!("{leading}{label}{trailing}")), param.text_range()))
198+
Some((move |label: &_| format!("{leading}{label}{trailing}"), param.text_range()))
199199
}

0 commit comments

Comments
 (0)