5811: Minor
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-08-19 11:34:29 +00:00 committed by GitHub
commit 63ac896655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,10 +126,10 @@ fn add_function_impl(
) {
let fn_name = func.name(ctx.db).to_string();
let label = if !func.params(ctx.db).is_empty() {
format!("fn {}(..)", fn_name)
} else {
let label = if func.params(ctx.db).is_empty() {
format!("fn {}()", fn_name)
} else {
format!("fn {}(..)", fn_name)
};
let builder = CompletionItem::new(CompletionKind::Magic, ctx.source_range(), label)