From 80ea7f3c8150daee6c8dda54eda76c1e7938ba40 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 19 Aug 2020 13:33:51 +0200 Subject: Minor --- crates/ide/src/completion/complete_trait_impl.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ide/src/completion/complete_trait_impl.rs b/crates/ide/src/completion/complete_trait_impl.rs index 478e31262..d69b6b468 100644 --- a/crates/ide/src/completion/complete_trait_impl.rs +++ b/crates/ide/src/completion/complete_trait_impl.rs @@ -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) -- cgit v1.2.3