aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_fn_param.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-08-29 14:49:10 +0100
committerAleksey Kladov <[email protected]>2019-08-29 15:04:01 +0100
commit0f6c048ce1a621ccd3e2080ec5aafbd053c516f4 (patch)
tree4aa7826d1b9a7222ad64085f136a1615d7daa7a5 /crates/ra_ide_api/src/completion/complete_fn_param.rs
parent5a99184967c89992df4544d0c1ca27d79946a1a7 (diff)
:arrow_up: insta
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.rs8
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)]
52mod tests { 52mod 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 {