diff options
author | Aleksey Kladov <[email protected]> | 2020-08-19 12:33:51 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-19 12:33:51 +0100 |
commit | 80ea7f3c8150daee6c8dda54eda76c1e7938ba40 (patch) | |
tree | 35826b1932d268ec95ea09efc63dca3f8f851ba2 /crates/ide | |
parent | c1cfd010096daa85f8acd6f1ea15d92097816e14 (diff) |
Minor
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/completion/complete_trait_impl.rs | 6 |
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) |