From 67e75ca1261863d21b48620e36b1632043ef36f9 Mon Sep 17 00:00:00 2001 From: Phil Ellison Date: Sun, 28 Jul 2019 12:45:01 +0100 Subject: Rerun cargo format, to make tests pass and formatting incorrect --- crates/ra_ide_api/src/completion/complete_scope.rs | 10 +++++----- 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 { #[test] fn completes_module_items() { assert_debug_snapshot_matches!( - do_reference_completion( - r" + do_reference_completion( + r" struct Foo; enum Baz {} fn quux() { <|> } " - ), - @r###"[ + ), + @r###"[ CompletionItem { label: "Baz", source_range: [105; 105), @@ -340,7 +340,7 @@ mod tests { detail: "fn quux()", }, ]"### - ); + ); } #[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 { let new_name = "foo2"; let source_change = analysis.rename(position, new_name).unwrap(); assert_debug_snapshot_matches!(&source_change, -@r###"Some( + @r###"Some( SourceChange { label: "rename", source_file_edits: [ @@ -421,7 +421,7 @@ mod tests { cursor_position: None, }, )"### - ); + ); } fn test_rename(text: &str, new_name: &str, expected: &str) { -- cgit v1.2.3