mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Cleanup ide_db imports
This commit is contained in:
parent
77a447dcda
commit
1ef55002c2
8 changed files with 15 additions and 10 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue