aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_text_edit
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-21 08:24:16 +0000
committerAleksey Kladov <[email protected]>2018-12-21 08:52:32 +0000
commit0063f03e86f4222a5027720142eb20db4adc485d (patch)
tree888c4de1eaa96cccb0b1870464e095679c5290b1 /crates/ra_text_edit
parent164d53b22f345e50c67781af545310d2193e8a5c (diff)
hide atom edits a bit
Diffstat (limited to 'crates/ra_text_edit')
-rw-r--r--crates/ra_text_edit/src/text_edit.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_text_edit/src/text_edit.rs b/crates/ra_text_edit/src/text_edit.rs
index fb46f046d..392968d63 100644
--- a/crates/ra_text_edit/src/text_edit.rs
+++ b/crates/ra_text_edit/src/text_edit.rs
@@ -41,8 +41,8 @@ impl TextEditBuilder {
41} 41}
42 42
43impl TextEdit { 43impl TextEdit {
44 pub fn into_atoms(self) -> Vec<AtomTextEdit> { 44 pub fn as_atoms(&self) -> &[AtomTextEdit] {
45 self.atoms 45 &self.atoms
46 } 46 }
47 47
48 pub fn apply(&self, text: &str) -> String { 48 pub fn apply(&self, text: &str) -> String {