aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-26 11:06:41 +0000
committerMarcus Klaas de Vries <[email protected]>2019-01-27 16:59:21 +0000
commit089b1c57c1774eb1aacec53828ce2d2648adff2d (patch)
treeba098a1ef9cfc82271a9abcc0eb022b40739a3d9 /crates/ra_ide_api/src/completion
parent04748a0f16624a1893c1da28a35ca3e220c81fce (diff)
Address some issues flagged in review
Diffstat (limited to 'crates/ra_ide_api/src/completion')
-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 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));