diff options
Diffstat (limited to 'crates/ra_text_edit/src')
-rw-r--r-- | crates/ra_text_edit/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_text_edit/src/lib.rs b/crates/ra_text_edit/src/lib.rs index 64b67f2ad..3409713ff 100644 --- a/crates/ra_text_edit/src/lib.rs +++ b/crates/ra_text_edit/src/lib.rs | |||
@@ -71,6 +71,10 @@ impl TextEdit { | |||
71 | TextEdit { indels } | 71 | TextEdit { indels } |
72 | } | 72 | } |
73 | 73 | ||
74 | pub fn is_empty(&self) -> bool { | ||
75 | self.indels.is_empty() | ||
76 | } | ||
77 | |||
74 | pub fn as_indels(&self) -> &[Indel] { | 78 | pub fn as_indels(&self) -> &[Indel] { |
75 | &self.indels | 79 | &self.indels |
76 | } | 80 | } |