diff options
Diffstat (limited to 'crates/ra_text_edit/src')
-rw-r--r-- | crates/ra_text_edit/src/text_edit.rs | 4 |
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 | ||
43 | impl TextEdit { | 43 | impl 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 { |