From 67e75ca1261863d21b48620e36b1632043ef36f9 Mon Sep 17 00:00:00 2001 From: Phil Ellison Date: Sun, 28 Jul 2019 12:45:01 +0100 Subject: [PATCH] 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 079ecfacc28..2000d953ad4 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 @@ struct X { #[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 @@ fn quux() { detail: "fn quux()", }, ]"### - ); + ); } #[test] diff --git a/crates/ra_ide_api/src/references.rs b/crates/ra_ide_api/src/references.rs index a1415118d37..379dd422ef5 100644 --- a/crates/ra_ide_api/src/references.rs +++ b/crates/ra_ide_api/src/references.rs @@ -389,7 +389,7 @@ fn test_rename_mod_in_dir() { 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 @@ fn test_rename_mod_in_dir() { cursor_position: None, }, )"### - ); + ); } fn test_rename(text: &str, new_name: &str, expected: &str) {