diff options
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/completion/completion_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index 6e9a68e40..b16ac2b28 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs | |||
@@ -240,7 +240,7 @@ impl Builder { | |||
240 | if ctx.use_item_syntax.is_none() && !ctx.is_call { | 240 | if ctx.use_item_syntax.is_none() && !ctx.is_call { |
241 | tested_by!(inserts_parens_for_function_calls); | 241 | tested_by!(inserts_parens_for_function_calls); |
242 | let sig = function.signature(ctx.db); | 242 | let sig = function.signature(ctx.db); |
243 | if sig.args().is_empty() || sig.has_self_param() && sig.args().len() == 1 { | 243 | if sig.params().is_empty() || sig.has_self_param() && sig.params().len() == 1 { |
244 | self.insert_text = Some(format!("{}()$0", self.label)); | 244 | self.insert_text = Some(format!("{}()$0", self.label)); |
245 | } else { | 245 | } else { |
246 | self.insert_text = Some(format!("{}($0)", self.label)); | 246 | self.insert_text = Some(format!("{}($0)", self.label)); |