diff options
-rw-r--r-- | crates/ide/src/diagnostics/fixes.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ide/src/diagnostics/fixes.rs b/crates/ide/src/diagnostics/fixes.rs index 1f112c5b8..cbfc66ab3 100644 --- a/crates/ide/src/diagnostics/fixes.rs +++ b/crates/ide/src/diagnostics/fixes.rs | |||
@@ -161,8 +161,7 @@ impl DiagnosticWithFix for ReplaceFilterMapNextWithFindMap { | |||
161 | 161 | ||
162 | let edit = TextEdit::replace(range_to_replace, replacement); | 162 | let edit = TextEdit::replace(range_to_replace, replacement); |
163 | 163 | ||
164 | let source_change = | 164 | let source_change = SourceChange::from_text_edit(self.file.original_file(sema.db), edit); |
165 | SourceFileEdit { file_id: self.file.original_file(sema.db), edit }.into(); | ||
166 | 165 | ||
167 | Some(Fix::new( | 166 | Some(Fix::new( |
168 | "Replace filter_map(..).next() with find_map()", | 167 | "Replace filter_map(..).next() with find_map()", |