mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Minor
This commit is contained in:
parent
c1cfd01009
commit
80ea7f3c81
1 changed files with 3 additions and 3 deletions
|
@ -126,10 +126,10 @@ fn add_function_impl(
|
||||||
) {
|
) {
|
||||||
let fn_name = func.name(ctx.db).to_string();
|
let fn_name = func.name(ctx.db).to_string();
|
||||||
|
|
||||||
let label = if !func.params(ctx.db).is_empty() {
|
let label = if func.params(ctx.db).is_empty() {
|
||||||
format!("fn {}(..)", fn_name)
|
|
||||||
} else {
|
|
||||||
format!("fn {}()", fn_name)
|
format!("fn {}()", fn_name)
|
||||||
|
} else {
|
||||||
|
format!("fn {}(..)", fn_name)
|
||||||
};
|
};
|
||||||
|
|
||||||
let builder = CompletionItem::new(CompletionKind::Magic, ctx.source_range(), label)
|
let builder = CompletionItem::new(CompletionKind::Magic, ctx.source_range(), label)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue