diff options
Diffstat (limited to 'support/texlab/crates/rename/src/command.rs')
-rw-r--r-- | support/texlab/crates/rename/src/command.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/support/texlab/crates/rename/src/command.rs b/support/texlab/crates/rename/src/command.rs index edcf7db61e..037e09e4ca 100644 --- a/support/texlab/crates/rename/src/command.rs +++ b/support/texlab/crates/rename/src/command.rs @@ -19,7 +19,7 @@ pub(super) fn prepare_rename(params: &RenameParams) -> Option<Span> { )) } -pub(super) fn rename<'a>(builder: &mut RenameBuilder) -> Option<()> { +pub(super) fn rename(builder: &mut RenameBuilder) -> Option<()> { let name = prepare_rename(&builder.params)?; for document in &builder.params.feature.project.documents { @@ -35,7 +35,10 @@ pub(super) fn rename<'a>(builder: &mut RenameBuilder) -> Option<()> { } } - builder.result.changes.insert(*document, edits); + builder + .result + .changes + .insert(*document, edits.iter().map(|&x| x.into()).collect()); } Some(()) |