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_postfix.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_postfix.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_postfix.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_postfix.rs b/crates/ra_ide_api/src/completion/complete_postfix.rs index 6d834f6ce..3970d1af3 100644 --- a/crates/ra_ide_api/src/completion/complete_postfix.rs +++ b/crates/ra_ide_api/src/completion/complete_postfix.rs | |||
@@ -72,7 +72,7 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) { | |||
72 | #[cfg(test)] | 72 | #[cfg(test)] |
73 | mod tests { | 73 | mod tests { |
74 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; | 74 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; |
75 | use insta::assert_debug_snapshot_matches; | 75 | use insta::assert_debug_snapshot; |
76 | 76 | ||
77 | fn do_postfix_completion(code: &str) -> Vec<CompletionItem> { | 77 | fn do_postfix_completion(code: &str) -> Vec<CompletionItem> { |
78 | do_completion(code, CompletionKind::Postfix) | 78 | do_completion(code, CompletionKind::Postfix) |
@@ -80,7 +80,7 @@ mod tests { | |||
80 | 80 | ||
81 | #[test] | 81 | #[test] |
82 | fn postfix_completion_works_for_trivial_path_expression() { | 82 | fn postfix_completion_works_for_trivial_path_expression() { |
83 | assert_debug_snapshot_matches!( | 83 | assert_debug_snapshot!( |
84 | do_postfix_completion( | 84 | do_postfix_completion( |
85 | r#" | 85 | r#" |
86 | fn main() { | 86 | fn main() { |
@@ -152,7 +152,7 @@ mod tests { | |||
152 | 152 | ||
153 | #[test] | 153 | #[test] |
154 | fn some_postfix_completions_ignored() { | 154 | fn some_postfix_completions_ignored() { |
155 | assert_debug_snapshot_matches!( | 155 | assert_debug_snapshot!( |
156 | do_postfix_completion( | 156 | do_postfix_completion( |
157 | r#" | 157 | r#" |
158 | fn main() { | 158 | fn main() { |