mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Phase out SourceFileEdits in favour of a plain HashMap
This commit is contained in:
parent
e23bfafb32
commit
d5095329a1
15 changed files with 181 additions and 216 deletions
|
@ -106,7 +106,7 @@ fn assert_ssr_transforms(rules: &[&str], input: &str, expected: Expect) {
|
|||
// Note, db.file_text is not necessarily the same as `input`, since fixture parsing alters
|
||||
// stuff.
|
||||
let mut actual = db.file_text(position.file_id).to_string();
|
||||
edits.edits[&position.file_id].apply(&mut actual);
|
||||
edits[&position.file_id].apply(&mut actual);
|
||||
expected.assert_eq(&actual);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue