diff options
author | Aleksey Kladov <[email protected]> | 2020-12-01 10:53:12 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-12-01 10:53:39 +0000 |
commit | 6f51f728a114078a0c3a029fc66cfb8c4daf9a28 (patch) | |
tree | 21a6ec1454180e7cec86a3a2efae000d70a07096 /crates/completion/src/completions | |
parent | 455a0cfda2121596deb13ca3f40a83c98b32863c (diff) |
Type-safer API for dealing with parameter lists with optional self
Diffstat (limited to 'crates/completion/src/completions')
-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) |