diff options
Diffstat (limited to 'crates/ra_text_edit')
-rw-r--r-- | crates/ra_text_edit/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_text_edit/src/lib.rs b/crates/ra_text_edit/src/lib.rs index 3409713ff..c4f945101 100644 --- a/crates/ra_text_edit/src/lib.rs +++ b/crates/ra_text_edit/src/lib.rs | |||
@@ -21,7 +21,7 @@ pub struct TextEdit { | |||
21 | indels: Vec<Indel>, | 21 | indels: Vec<Indel>, |
22 | } | 22 | } |
23 | 23 | ||
24 | #[derive(Debug, Default)] | 24 | #[derive(Debug, Default, Clone)] |
25 | pub struct TextEditBuilder { | 25 | pub struct TextEditBuilder { |
26 | indels: Vec<Indel>, | 26 | indels: Vec<Indel>, |
27 | } | 27 | } |
@@ -75,6 +75,7 @@ impl TextEdit { | |||
75 | self.indels.is_empty() | 75 | self.indels.is_empty() |
76 | } | 76 | } |
77 | 77 | ||
78 | // FXME: impl IntoIter instead | ||
78 | pub fn as_indels(&self) -> &[Indel] { | 79 | pub fn as_indels(&self) -> &[Indel] { |
79 | &self.indels | 80 | &self.indels |
80 | } | 81 | } |