diff options
author | Phil Ellison <[email protected]> | 2021-01-23 07:54:45 +0000 |
---|---|---|
committer | Phil Ellison <[email protected]> | 2021-01-23 07:54:45 +0000 |
commit | db6dda94a39534bbf20da844a4f221c3d14509c4 (patch) | |
tree | 582ca4f048a09f86c0e489bbd31950d2b738036b /crates/ide | |
parent | 65a5ea581d547c36e98b4a3c5a99671ad5d4c117 (diff) |
Remove use of SourceFileEdit
Diffstat (limited to 'crates/ide')
-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()", |