mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Rerun cargo format, to make tests pass and formatting incorrect
This commit is contained in:
parent
44b2642900
commit
67e75ca126
2 changed files with 7 additions and 7 deletions
|
@ -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]
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue