Rerun cargo format, to make tests pass and formatting incorrect

This commit is contained in:
Phil Ellison 2019-07-28 12:45:01 +01:00
parent 44b2642900
commit 67e75ca126
2 changed files with 7 additions and 7 deletions

View file

@ -307,16 +307,16 @@ mod tests {
#[test] #[test]
fn completes_module_items() { fn completes_module_items() {
assert_debug_snapshot_matches!( assert_debug_snapshot_matches!(
do_reference_completion( do_reference_completion(
r" r"
struct Foo; struct Foo;
enum Baz {} enum Baz {}
fn quux() { fn quux() {
<|> <|>
} }
" "
), ),
@r###"[ @r###"[
CompletionItem { CompletionItem {
label: "Baz", label: "Baz",
source_range: [105; 105), source_range: [105; 105),
@ -340,7 +340,7 @@ mod tests {
detail: "fn quux()", detail: "fn quux()",
}, },
]"### ]"###
); );
} }
#[test] #[test]

View file

@ -389,7 +389,7 @@ mod tests {
let new_name = "foo2"; let new_name = "foo2";
let source_change = analysis.rename(position, new_name).unwrap(); let source_change = analysis.rename(position, new_name).unwrap();
assert_debug_snapshot_matches!(&source_change, assert_debug_snapshot_matches!(&source_change,
@r###"Some( @r###"Some(
SourceChange { SourceChange {
label: "rename", label: "rename",
source_file_edits: [ source_file_edits: [
@ -421,7 +421,7 @@ mod tests {
cursor_position: None, cursor_position: None,
}, },
)"### )"###
); );
} }
fn test_rename(text: &str, new_name: &str, expected: &str) { fn test_rename(text: &str, new_name: &str, expected: &str) {