aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/presentation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/completion/presentation.rs')
-rw-r--r--crates/ra_ide_api/src/completion/presentation.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs
index 147ceda0c..f19eec9b7 100644
--- a/crates/ra_ide_api/src/completion/presentation.rs
+++ b/crates/ra_ide_api/src/completion/presentation.rs
@@ -186,7 +186,7 @@ impl Completions {
186#[cfg(test)] 186#[cfg(test)]
187mod tests { 187mod tests {
188 use crate::completion::{do_completion, CompletionItem, CompletionKind}; 188 use crate::completion::{do_completion, CompletionItem, CompletionKind};
189 use insta::assert_debug_snapshot_matches; 189 use insta::assert_debug_snapshot;
190 use test_utils::covers; 190 use test_utils::covers;
191 191
192 fn do_reference_completion(code: &str) -> Vec<CompletionItem> { 192 fn do_reference_completion(code: &str) -> Vec<CompletionItem> {
@@ -196,7 +196,7 @@ mod tests {
196 #[test] 196 #[test]
197 fn inserts_parens_for_function_calls() { 197 fn inserts_parens_for_function_calls() {
198 covers!(inserts_parens_for_function_calls); 198 covers!(inserts_parens_for_function_calls);
199 assert_debug_snapshot_matches!( 199 assert_debug_snapshot!(
200 do_reference_completion( 200 do_reference_completion(
201 r" 201 r"
202 fn no_args() {} 202 fn no_args() {}
@@ -222,7 +222,7 @@ mod tests {
222 }, 222 },
223]"### 223]"###
224 ); 224 );
225 assert_debug_snapshot_matches!( 225 assert_debug_snapshot!(
226 do_reference_completion( 226 do_reference_completion(
227 r" 227 r"
228 fn with_args(x: i32, y: String) {} 228 fn with_args(x: i32, y: String) {}
@@ -248,7 +248,7 @@ mod tests {
248 }, 248 },
249]"### 249]"###
250 ); 250 );
251 assert_debug_snapshot_matches!( 251 assert_debug_snapshot!(
252 do_reference_completion( 252 do_reference_completion(
253 r" 253 r"
254 struct S {} 254 struct S {}
@@ -275,7 +275,7 @@ mod tests {
275 275
276 #[test] 276 #[test]
277 fn dont_render_function_parens_in_use_item() { 277 fn dont_render_function_parens_in_use_item() {
278 assert_debug_snapshot_matches!( 278 assert_debug_snapshot!(
279 do_reference_completion( 279 do_reference_completion(
280 " 280 "
281 //- /lib.rs 281 //- /lib.rs
@@ -298,7 +298,7 @@ mod tests {
298 298
299 #[test] 299 #[test]
300 fn dont_render_function_parens_if_already_call() { 300 fn dont_render_function_parens_if_already_call() {
301 assert_debug_snapshot_matches!( 301 assert_debug_snapshot!(
302 do_reference_completion( 302 do_reference_completion(
303 " 303 "
304 //- /lib.rs 304 //- /lib.rs
@@ -327,7 +327,7 @@ mod tests {
327 }, 327 },
328]"# 328]"#
329 ); 329 );
330 assert_debug_snapshot_matches!( 330 assert_debug_snapshot!(
331 do_reference_completion( 331 do_reference_completion(
332 " 332 "
333 //- /lib.rs 333 //- /lib.rs