mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +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]
|
#[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]
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue