Skip to content

Commit 6dea98c

Browse files
committed
Rename param edit to editor for add_file_edits
1 parent 728fbf8 commit 6dea98c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/ide-db/src/source_change.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ impl SourceChangeBuilder {
285285
SyntaxEditor::new(node.ancestors().last().unwrap_or_else(|| node.clone())).0
286286
}
287287

288-
pub fn add_file_edits(&mut self, file_id: impl Into<FileId>, edit: SyntaxEditor) {
288+
pub fn add_file_edits(&mut self, file_id: impl Into<FileId>, editor: SyntaxEditor) {
289289
match self.file_editors.entry(file_id.into()) {
290-
Entry::Occupied(mut entry) => entry.get_mut().merge(edit),
290+
Entry::Occupied(mut entry) => entry.get_mut().merge(editor),
291291
Entry::Vacant(entry) => {
292-
entry.insert(edit);
292+
entry.insert(editor);
293293
}
294294
}
295295
}

0 commit comments

Comments
 (0)