aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/completion/complete_trait_impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/completion/complete_trait_impl.rs')
-rw-r--r--crates/ide/src/completion/complete_trait_impl.rs6
1 files 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(
126) { 126) {
127 let fn_name = func.name(ctx.db).to_string(); 127 let fn_name = func.name(ctx.db).to_string();
128 128
129 let label = if !func.params(ctx.db).is_empty() { 129 let label = if func.params(ctx.db).is_empty() {
130 format!("fn {}(..)", fn_name)
131 } else {
132 format!("fn {}()", fn_name) 130 format!("fn {}()", fn_name)
131 } else {
132 format!("fn {}(..)", fn_name)
133 }; 133 };
134 134
135 let builder = CompletionItem::new(CompletionKind::Magic, ctx.source_range(), label) 135 let builder = CompletionItem::new(CompletionKind::Magic, ctx.source_range(), label)