From 0063f03e86f4222a5027720142eb20db4adc485d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 21 Dec 2018 11:24:16 +0300 Subject: hide atom edits a bit --- crates/ra_text_edit/src/text_edit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_text_edit/src/text_edit.rs') 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 { } impl TextEdit { - pub fn into_atoms(self) -> Vec { - self.atoms + pub fn as_atoms(&self) -> &[AtomTextEdit] { + &self.atoms } pub fn apply(&self, text: &str) -> String { -- cgit v1.2.3