diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_fn_param.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_fn_param.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_fn_param.rs b/crates/ra_ide_api/src/completion/complete_fn_param.rs index 0887ef1f6..6639b6fff 100644 --- a/crates/ra_ide_api/src/completion/complete_fn_param.rs +++ b/crates/ra_ide_api/src/completion/complete_fn_param.rs | |||
@@ -51,7 +51,7 @@ pub(super) fn complete_fn_param(acc: &mut Completions, ctx: &CompletionContext) | |||
51 | #[cfg(test)] | 51 | #[cfg(test)] |
52 | mod tests { | 52 | mod tests { |
53 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; | 53 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; |
54 | use insta::assert_debug_snapshot_matches; | 54 | use insta::assert_debug_snapshot; |
55 | 55 | ||
56 | fn do_magic_completion(code: &str) -> Vec<CompletionItem> { | 56 | fn do_magic_completion(code: &str) -> Vec<CompletionItem> { |
57 | do_completion(code, CompletionKind::Magic) | 57 | do_completion(code, CompletionKind::Magic) |
@@ -59,7 +59,7 @@ mod tests { | |||
59 | 59 | ||
60 | #[test] | 60 | #[test] |
61 | fn test_param_completion_last_param() { | 61 | fn test_param_completion_last_param() { |
62 | assert_debug_snapshot_matches!( | 62 | assert_debug_snapshot!( |
63 | do_magic_completion( | 63 | do_magic_completion( |
64 | r" | 64 | r" |
65 | fn foo(file_id: FileId) {} | 65 | fn foo(file_id: FileId) {} |
@@ -83,7 +83,7 @@ mod tests { | |||
83 | 83 | ||
84 | #[test] | 84 | #[test] |
85 | fn test_param_completion_nth_param() { | 85 | fn test_param_completion_nth_param() { |
86 | assert_debug_snapshot_matches!( | 86 | assert_debug_snapshot!( |
87 | do_magic_completion( | 87 | do_magic_completion( |
88 | r" | 88 | r" |
89 | fn foo(file_id: FileId) {} | 89 | fn foo(file_id: FileId) {} |
@@ -107,7 +107,7 @@ mod tests { | |||
107 | 107 | ||
108 | #[test] | 108 | #[test] |
109 | fn test_param_completion_trait_param() { | 109 | fn test_param_completion_trait_param() { |
110 | assert_debug_snapshot_matches!( | 110 | assert_debug_snapshot!( |
111 | do_magic_completion( | 111 | do_magic_completion( |
112 | r" | 112 | r" |
113 | pub(crate) trait SourceRoot { | 113 | pub(crate) trait SourceRoot { |