aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_dot.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-10 18:38:46 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-10 18:38:46 +0000
commita3e747f5ebfafbc61a28f2dcac3f20de4d7ee420 (patch)
tree195ec048e65baba519213a0a9c9b0143de555376 /crates/ra_ide_api/src/completion/complete_dot.rs
parentf96312b8360040086a236279515d178bf26ffb14 (diff)
parentfaa1d35cbc29be23667319628e4034348ea50fe9 (diff)
Merge #487
487: dont complete () if they are already there r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_dot.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_dot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs
index 65bba6dc7..80d0b1663 100644
--- a/crates/ra_ide_api/src/completion/complete_dot.rs
+++ b/crates/ra_ide_api/src/completion/complete_dot.rs
@@ -16,7 +16,7 @@ pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) -> Ca
16 None => return Ok(()), 16 None => return Ok(()),
17 }; 17 };
18 let receiver_ty = infer_result[expr].clone(); 18 let receiver_ty = infer_result[expr].clone();
19 if !ctx.is_method_call { 19 if !ctx.is_call {
20 complete_fields(acc, ctx, receiver_ty)?; 20 complete_fields(acc, ctx, receiver_ty)?;
21 } 21 }
22 Ok(()) 22 Ok(())