mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
use new translate_offset_with_edit for TryConvWith
doc comments
This commit is contained in:
parent
aff0124b37
commit
6b2da4e547
4 changed files with 5 additions and 37 deletions
|
@ -6,8 +6,10 @@ pub use crate::text_edit::{TextEdit, TextEditBuilder};
|
|||
|
||||
use text_unit::{TextRange, TextUnit};
|
||||
|
||||
/// Must not overlap with other `AtomTextEdit`s
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct AtomTextEdit {
|
||||
/// Refers to offsets in the original text
|
||||
pub delete: TextRange,
|
||||
pub insert: String,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue