aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-08-19 12:34:29 +0100
committerGitHub <[email protected]>2020-08-19 12:34:29 +0100
commit63ac896655b75bc42d488cb5d4153ba770535ac5 (patch)
treee3730ee3ba4c50f6ef762de9538d0ff3d75a3f3d
parent529ca7e5e0573e15b23cd0067a691bf1ffebae84 (diff)
parent80ea7f3c8150daee6c8dda54eda76c1e7938ba40 (diff)
Merge #5811
5811: Minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-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)