Skip to content

Commit c3117ee

Browse files
author
Veetaha
committed
ra_syntax: removed unnecessary init statement from reparsing tests
1 parent 58e01d8 commit c3117ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/ra_syntax/src/parsing/reparsing.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ mod tests {
194194
let fully_reparsed = SourceFile::parse(&after);
195195
let incrementally_reparsed: Parse<SourceFile> = {
196196
let f = SourceFile::parse(&before);
197-
// FIXME: it seems this initialization statement is unnecessary (see edit in outer scope)
198-
// Investigate whether it should really be removed.
199-
let edit = AtomTextEdit { delete: range, insert: replace_with.to_string() };
200197
let (green, new_errors, range) =
201198
incremental_reparse(f.tree().syntax(), &edit, f.errors.to_vec()).unwrap();
202199
assert_eq!(range.len(), reparsed_len.into(), "reparsed fragment has wrong length");

0 commit comments

Comments
 (0)