diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-01 11:29:25 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-01 11:29:25 +0000 |
commit | 75e037fcf75691a3a87d0cb37ea660dd7105ffba (patch) | |
tree | 0a08b79f8fb8f5da53e5d700d827d325cd326178 /crates/completion/src/completions/trait_impl.rs | |
parent | 455a0cfda2121596deb13ca3f40a83c98b32863c (diff) | |
parent | 9d94ffad44f2b250e498f162cd498aed62877c8e (diff) |
Merge #6688
6688: Place cursor correctly when completing assoc fns with self r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/completion/src/completions/trait_impl.rs')
-rw-r--r-- | crates/completion/src/completions/trait_impl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/completion/src/completions/trait_impl.rs b/crates/completion/src/completions/trait_impl.rs index a14be9c73..e2fe44aff 100644 --- a/crates/completion/src/completions/trait_impl.rs +++ b/crates/completion/src/completions/trait_impl.rs | |||
@@ -139,7 +139,7 @@ fn add_function_impl( | |||
139 | ) { | 139 | ) { |
140 | let fn_name = func.name(ctx.db).to_string(); | 140 | let fn_name = func.name(ctx.db).to_string(); |
141 | 141 | ||
142 | let label = if func.params(ctx.db).is_empty() { | 142 | let label = if func.assoc_fn_params(ctx.db).is_empty() { |
143 | format!("fn {}()", fn_name) | 143 | format!("fn {}()", fn_name) |
144 | } else { | 144 | } else { |
145 | format!("fn {}(..)", fn_name) | 145 | format!("fn {}(..)", fn_name) |