diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 11:25:53 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 11:25:53 +0000 |
commit | 04ce89313369a1606b057b3be1368d72b8a5cd63 (patch) | |
tree | d85e49c985b92a9ccf1303a089dccdd4c805db1c /crates/ra_ide_api | |
parent | ae97cd59ff086e7efb6409f14c2f8ae8861596e4 (diff) | |
parent | 64d4f4255880bbfb400551db38b76871276eaca6 (diff) |
Merge #638
638: reduce visibility r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_dot.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs index 6a9358d33..060a46c5e 100644 --- a/crates/ra_ide_api/src/completion/complete_dot.rs +++ b/crates/ra_ide_api/src/completion/complete_dot.rs | |||
@@ -34,10 +34,10 @@ fn complete_fields(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty) | |||
34 | CompletionItem::new( | 34 | CompletionItem::new( |
35 | CompletionKind::Reference, | 35 | CompletionKind::Reference, |
36 | ctx.source_range(), | 36 | ctx.source_range(), |
37 | field.name().to_string(), | 37 | field.name(ctx.db).to_string(), |
38 | ) | 38 | ) |
39 | .kind(CompletionItemKind::Field) | 39 | .kind(CompletionItemKind::Field) |
40 | .set_detail(field.ty(ctx.db).map(|ty| ty.subst(substs).to_string())) | 40 | .detail(field.ty(ctx.db).subst(substs).to_string()) |
41 | .add_to(acc); | 41 | .add_to(acc); |
42 | } | 42 | } |
43 | } | 43 | } |