aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_text_edit
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-06 12:08:37 +0100
committerAleksey Kladov <[email protected]>2020-05-06 12:21:49 +0100
commit1116c9a0e9992d0dea8dac87de95c8a74c093cff (patch)
treefe1fb40500ea87a6e92351800884248ed6fe81e5 /crates/ra_text_edit
parent4de3c3eedc1f6576d59e00f0ddde3c70c97be066 (diff)
Fix TODO
Diffstat (limited to 'crates/ra_text_edit')
-rw-r--r--crates/ra_text_edit/src/lib.rs4
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 }