diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-08-29 15:04:28 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-08-29 15:04:28 +0100 |
commit | 7d72ca80003b7915ed7fc64907b5b6dc5c88dacd (patch) | |
tree | 4aa7826d1b9a7222ad64085f136a1615d7daa7a5 /crates/ra_ide_api/src/completion/complete_record_literal.rs | |
parent | 5a99184967c89992df4544d0c1ca27d79946a1a7 (diff) | |
parent | 0f6c048ce1a621ccd3e2080ec5aafbd053c516f4 (diff) |
Merge #1738
1738: :arrow_up: insta r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_record_literal.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_record_literal.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_record_literal.rs b/crates/ra_ide_api/src/completion/complete_record_literal.rs index 6b929a8ac..ed4029964 100644 --- a/crates/ra_ide_api/src/completion/complete_record_literal.rs +++ b/crates/ra_ide_api/src/completion/complete_record_literal.rs | |||
@@ -23,7 +23,7 @@ pub(super) fn complete_record_literal(acc: &mut Completions, ctx: &CompletionCon | |||
23 | #[cfg(test)] | 23 | #[cfg(test)] |
24 | mod tests { | 24 | mod tests { |
25 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; | 25 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; |
26 | use insta::assert_debug_snapshot_matches; | 26 | use insta::assert_debug_snapshot; |
27 | 27 | ||
28 | fn complete(code: &str) -> Vec<CompletionItem> { | 28 | fn complete(code: &str) -> Vec<CompletionItem> { |
29 | do_completion(code, CompletionKind::Reference) | 29 | do_completion(code, CompletionKind::Reference) |
@@ -39,7 +39,7 @@ mod tests { | |||
39 | } | 39 | } |
40 | ", | 40 | ", |
41 | ); | 41 | ); |
42 | assert_debug_snapshot_matches!(completions, @r###" | 42 | assert_debug_snapshot!(completions, @r###" |
43 | ⋮[ | 43 | ⋮[ |
44 | ⋮ CompletionItem { | 44 | ⋮ CompletionItem { |
45 | ⋮ label: "the_field", | 45 | ⋮ label: "the_field", |
@@ -65,7 +65,7 @@ mod tests { | |||
65 | } | 65 | } |
66 | ", | 66 | ", |
67 | ); | 67 | ); |
68 | assert_debug_snapshot_matches!(completions, @r###" | 68 | assert_debug_snapshot!(completions, @r###" |
69 | ⋮[ | 69 | ⋮[ |
70 | ⋮ CompletionItem { | 70 | ⋮ CompletionItem { |
71 | ⋮ label: "a", | 71 | ⋮ label: "a", |
@@ -91,7 +91,7 @@ mod tests { | |||
91 | } | 91 | } |
92 | ", | 92 | ", |
93 | ); | 93 | ); |
94 | assert_debug_snapshot_matches!(completions, @r###" | 94 | assert_debug_snapshot!(completions, @r###" |
95 | ⋮[ | 95 | ⋮[ |
96 | ⋮ CompletionItem { | 96 | ⋮ CompletionItem { |
97 | ⋮ label: "b", | 97 | ⋮ label: "b", |
@@ -116,7 +116,7 @@ mod tests { | |||
116 | } | 116 | } |
117 | ", | 117 | ", |
118 | ); | 118 | ); |
119 | assert_debug_snapshot_matches!(completions, @r###" | 119 | assert_debug_snapshot!(completions, @r###" |
120 | ⋮[ | 120 | ⋮[ |
121 | ⋮ CompletionItem { | 121 | ⋮ CompletionItem { |
122 | ⋮ label: "a", | 122 | ⋮ label: "a", |