diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-21 09:33:45 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-21 09:33:45 +0000 |
commit | 4f7ec0170353e61c148909d2716c915578392a7b (patch) | |
tree | c4a7a0dae2ccbc6b6d987faca8002a22d0253382 /crates/ra_text_edit/src | |
parent | 164d53b22f345e50c67781af545310d2193e8a5c (diff) | |
parent | fd927ea3a9ea687ba11b01e56579f0287221f55c (diff) |
Merge #309
309: Fix edits r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 { |