diff options
author | Aleksey Kladov <[email protected]> | 2019-02-24 17:49:55 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-24 17:49:55 +0000 |
commit | 9af525dbd69bb22c968ba42d758657b2ad9bdd37 (patch) | |
tree | 0a7677e6b315ec6eceb72005d7cf2fb61bc0a4f3 /crates/ra_ide_api/src/completion/complete_struct_literal.rs | |
parent | 3c7c5a7354760a12b38c7186193232d68056a76e (diff) |
simplify
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_struct_literal.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_struct_literal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_struct_literal.rs b/crates/ra_ide_api/src/completion/complete_struct_literal.rs index c617bff5f..1b8fb0768 100644 --- a/crates/ra_ide_api/src/completion/complete_struct_literal.rs +++ b/crates/ra_ide_api/src/completion/complete_struct_literal.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | use hir::{Ty, AdtDef}; | 1 | use hir::{Ty, AdtDef}; |
2 | 2 | ||
3 | use crate::completion::{CompletionContext, Completions, CompletionKind}; | 3 | use crate::completion::{CompletionContext, Completions}; |
4 | 4 | ||
5 | /// Complete fields in fields literals. | 5 | /// Complete fields in fields literals. |
6 | pub(super) fn complete_struct_literal(acc: &mut Completions, ctx: &CompletionContext) { | 6 | pub(super) fn complete_struct_literal(acc: &mut Completions, ctx: &CompletionContext) { |
@@ -22,7 +22,7 @@ pub(super) fn complete_struct_literal(acc: &mut Completions, ctx: &CompletionCon | |||
22 | match adt { | 22 | match adt { |
23 | AdtDef::Struct(s) => { | 23 | AdtDef::Struct(s) => { |
24 | for field in s.fields(ctx.db) { | 24 | for field in s.fields(ctx.db) { |
25 | acc.add_field(CompletionKind::Reference, ctx, field, substs); | 25 | acc.add_field(ctx, field, substs); |
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||