diff options
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 | 22 |
1 files changed, 12 insertions, 10 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 a00c1b60b..1eeea58f6 100644 --- a/crates/ra_ide_api/src/completion/complete_struct_literal.rs +++ b/crates/ra_ide_api/src/completion/complete_struct_literal.rs | |||
@@ -44,15 +44,17 @@ mod tests { | |||
44 | } | 44 | } |
45 | ", | 45 | ", |
46 | ); | 46 | ); |
47 | assert_debug_snapshot_matches!(completions, @r###"[ | 47 | assert_debug_snapshot_matches!(completions, @r###" |
48 | CompletionItem { | 48 | ⋮[ |
49 | label: "the_field", | 49 | ⋮ CompletionItem { |
50 | source_range: [83; 86), | 50 | ⋮ label: "the_field", |
51 | delete: [83; 86), | 51 | ⋮ source_range: [83; 86), |
52 | insert: "the_field", | 52 | ⋮ delete: [83; 86), |
53 | kind: Field, | 53 | ⋮ insert: "the_field", |
54 | detail: "u32" | 54 | ⋮ kind: Field, |
55 | } | 55 | ⋮ detail: "u32", |
56 | ]"###); | 56 | ⋮ }, |
57 | ⋮] | ||
58 | "###); | ||
57 | } | 59 | } |
58 | } | 60 | } |