Cleanup ide_db imports

This commit is contained in:
Lukas Wirth 2021-03-27 21:51:00 +01:00
parent 77a447dcda
commit 1ef55002c2
8 changed files with 15 additions and 10 deletions

View file

@ -37,6 +37,8 @@ impl SourceChange {
}
}
/// Inserts a [`TextEdit`] for the given [`FileId`]. This properly handles merging existing
/// edits for a file if some already exist.
pub fn insert_source_edit(&mut self, file_id: FileId, edit: TextEdit) {
match self.source_file_edits.entry(file_id) {
Entry::Occupied(mut entry) => {