diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_scope.rs | 10 | ||||
-rw-r--r-- | crates/ra_ide_api/src/references.rs | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_scope.rs b/crates/ra_ide_api/src/completion/complete_scope.rs index 079ecfacc..2000d953a 100644 --- a/crates/ra_ide_api/src/completion/complete_scope.rs +++ b/crates/ra_ide_api/src/completion/complete_scope.rs | |||
@@ -307,16 +307,16 @@ mod tests { | |||
307 | #[test] | 307 | #[test] |
308 | fn completes_module_items() { | 308 | fn completes_module_items() { |
309 | assert_debug_snapshot_matches!( | 309 | assert_debug_snapshot_matches!( |
310 | do_reference_completion( | 310 | do_reference_completion( |
311 | r" | 311 | r" |
312 | struct Foo; | 312 | struct Foo; |
313 | enum Baz {} | 313 | enum Baz {} |
314 | fn quux() { | 314 | fn quux() { |
315 | <|> | 315 | <|> |
316 | } | 316 | } |
317 | " | 317 | " |
318 | ), | 318 | ), |
319 | @r###"[ | 319 | @r###"[ |
320 | CompletionItem { | 320 | CompletionItem { |
321 | label: "Baz", | 321 | label: "Baz", |
322 | source_range: [105; 105), | 322 | source_range: [105; 105), |
@@ -340,7 +340,7 @@ mod tests { | |||
340 | detail: "fn quux()", | 340 | detail: "fn quux()", |
341 | }, | 341 | }, |
342 | ]"### | 342 | ]"### |
343 | ); | 343 | ); |
344 | } | 344 | } |
345 | 345 | ||
346 | #[test] | 346 | #[test] |
diff --git a/crates/ra_ide_api/src/references.rs b/crates/ra_ide_api/src/references.rs index a1415118d..379dd422e 100644 --- a/crates/ra_ide_api/src/references.rs +++ b/crates/ra_ide_api/src/references.rs | |||
@@ -389,7 +389,7 @@ mod tests { | |||
389 | let new_name = "foo2"; | 389 | let new_name = "foo2"; |
390 | let source_change = analysis.rename(position, new_name).unwrap(); | 390 | let source_change = analysis.rename(position, new_name).unwrap(); |
391 | assert_debug_snapshot_matches!(&source_change, | 391 | assert_debug_snapshot_matches!(&source_change, |
392 | @r###"Some( | 392 | @r###"Some( |
393 | SourceChange { | 393 | SourceChange { |
394 | label: "rename", | 394 | label: "rename", |
395 | source_file_edits: [ | 395 | source_file_edits: [ |
@@ -421,7 +421,7 @@ mod tests { | |||
421 | cursor_position: None, | 421 | cursor_position: None, |
422 | }, | 422 | }, |
423 | )"### | 423 | )"### |
424 | ); | 424 | ); |
425 | } | 425 | } |
426 | 426 | ||
427 | fn test_rename(text: &str, new_name: &str, expected: &str) { | 427 | fn test_rename(text: &str, new_name: &str, expected: &str) { |