aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-25 20:16:02 +0000
committerMarcus Klaas de Vries <[email protected]>2019-01-27 16:59:21 +0000
commit3bd47c0285433b5eb258196a81b95141d2a70505 (patch)
tree41bd19f6e95e4c22bd39c35702a1d2e048dd9cef /crates/ra_ide_api/src
parent3f4f50baaa21cb2d0f6c102f1ca521946071a8dc (diff)
First attempt at generic type inference for fns
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r--crates/ra_ide_api/src/completion/completion_item.rs2
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 b16ac2b28..6e9a68e40 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.params().is_empty() || sig.has_self_param() && sig.params().len() == 1 { 243 if sig.args().is_empty() || sig.has_self_param() && sig.args().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));