From c3117eea31392f8f63f1352a127f6b77139c375b Mon Sep 17 00:00:00 2001 From: Veetaha Date: Tue, 28 Jan 2020 07:23:26 +0200 Subject: ra_syntax: removed unnecessary init statement from reparsing tests --- crates/ra_syntax/src/parsing/reparsing.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/src/parsing/reparsing.rs b/crates/ra_syntax/src/parsing/reparsing.rs index 1f351e9fc..a86da0675 100644 --- a/crates/ra_syntax/src/parsing/reparsing.rs +++ b/crates/ra_syntax/src/parsing/reparsing.rs @@ -194,9 +194,6 @@ mod tests { let fully_reparsed = SourceFile::parse(&after); let incrementally_reparsed: Parse = { let f = SourceFile::parse(&before); - // FIXME: it seems this initialization statement is unnecessary (see edit in outer scope) - // Investigate whether it should really be removed. - let edit = AtomTextEdit { delete: range, insert: replace_with.to_string() }; let (green, new_errors, range) = incremental_reparse(f.tree().syntax(), &edit, f.errors.to_vec()).unwrap(); assert_eq!(range.len(), reparsed_len.into(), "reparsed fragment has wrong length"); -- cgit v1.2.3