aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_record_pattern.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-29 15:04:28 +0100
committerGitHub <[email protected]>2019-08-29 15:04:28 +0100
commit7d72ca80003b7915ed7fc64907b5b6dc5c88dacd (patch)
tree4aa7826d1b9a7222ad64085f136a1615d7daa7a5 /crates/ra_ide_api/src/completion/complete_record_pattern.rs
parent5a99184967c89992df4544d0c1ca27d79946a1a7 (diff)
parent0f6c048ce1a621ccd3e2080ec5aafbd053c516f4 (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_pattern.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_record_pattern.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_record_pattern.rs b/crates/ra_ide_api/src/completion/complete_record_pattern.rs
index 8c8b47ea4..70716b3d6 100644
--- a/crates/ra_ide_api/src/completion/complete_record_pattern.rs
+++ b/crates/ra_ide_api/src/completion/complete_record_pattern.rs
@@ -22,7 +22,7 @@ pub(super) fn complete_record_pattern(acc: &mut Completions, ctx: &CompletionCon
22#[cfg(test)] 22#[cfg(test)]
23mod tests { 23mod tests {
24 use crate::completion::{do_completion, CompletionItem, CompletionKind}; 24 use crate::completion::{do_completion, CompletionItem, CompletionKind};
25 use insta::assert_debug_snapshot_matches; 25 use insta::assert_debug_snapshot;
26 26
27 fn complete(code: &str) -> Vec<CompletionItem> { 27 fn complete(code: &str) -> Vec<CompletionItem> {
28 do_completion(code, CompletionKind::Reference) 28 do_completion(code, CompletionKind::Reference)
@@ -41,7 +41,7 @@ mod tests {
41 } 41 }
42 ", 42 ",
43 ); 43 );
44 assert_debug_snapshot_matches!(completions, @r###" 44 assert_debug_snapshot!(completions, @r###"
45 ⋮[ 45 ⋮[
46 ⋮ CompletionItem { 46 ⋮ CompletionItem {
47 ⋮ label: "foo", 47 ⋮ label: "foo",
@@ -70,7 +70,7 @@ mod tests {
70 } 70 }
71 ", 71 ",
72 ); 72 );
73 assert_debug_snapshot_matches!(completions, @r###" 73 assert_debug_snapshot!(completions, @r###"
74 ⋮[ 74 ⋮[
75 ⋮ CompletionItem { 75 ⋮ CompletionItem {
76 ⋮ label: "bar", 76 ⋮ label: "bar",