Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/source_change.rs')
| -rw-r--r-- | crates/ide-db/src/source_change.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide-db/src/source_change.rs b/crates/ide-db/src/source_change.rs index 4a83f707fc..81b679ead2 100644 --- a/crates/ide-db/src/source_change.rs +++ b/crates/ide-db/src/source_change.rs @@ -285,11 +285,11 @@ impl SourceChangeBuilder { SyntaxEditor::new(node.ancestors().last().unwrap_or_else(|| node.clone())).0 } - pub fn add_file_edits(&mut self, file_id: impl Into<FileId>, edit: SyntaxEditor) { + pub fn add_file_edits(&mut self, file_id: impl Into<FileId>, editor: SyntaxEditor) { match self.file_editors.entry(file_id.into()) { - Entry::Occupied(mut entry) => entry.get_mut().merge(edit), + Entry::Occupied(mut entry) => entry.get_mut().merge(editor), Entry::Vacant(entry) => { - entry.insert(edit); + entry.insert(editor); } } } |