Rerun cargo format, to make tests pass and formatting incorrect
This commit is contained in:
parent
44b2642900
commit
67e75ca126
@ -307,16 +307,16 @@ struct X<T> {
|
||||
#[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]
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user