mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
hide atom edits a bit
This commit is contained in:
parent
164d53b22f
commit
0063f03e86
5 changed files with 24 additions and 12 deletions
|
@ -41,8 +41,8 @@ impl TextEditBuilder {
|
|||
}
|
||||
|
||||
impl TextEdit {
|
||||
pub fn into_atoms(self) -> Vec<AtomTextEdit> {
|
||||
self.atoms
|
||||
pub fn as_atoms(&self) -> &[AtomTextEdit] {
|
||||
&self.atoms
|
||||
}
|
||||
|
||||
pub fn apply(&self, text: &str) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue