aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBrian Shu2021-08-26 18:45:23 +0000
committerBlaž Hrastnik2021-08-27 00:50:57 +0000
commitfa4caf7e3d43a40073f6966d37f529d5197bd840 (patch)
treee9af9d4e6eeaabfa2ae563156f4d0d9266543779 /helix-core
parentcec5d437d892767ccbc49cfcb20b4561ce24576d (diff)
remove unsafe
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/transaction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs
index d15db000..d682f058 100644
--- a/helix-core/src/transaction.rs
+++ b/helix-core/src/transaction.rs
@@ -125,7 +125,7 @@ impl ChangeSet {
/// In other words, If `this` goes `docA` → `docB` and `other` represents `docB` → `docC`, the
/// returned value will represent the change `docA` → `docC`.
pub fn compose(self, other: Self) -> Self {
- debug_assert!(self.len_after == other.len);
+ assert!(self.len_after == other.len);
// composing fails in weird ways if one of the sets is empty
// a: [] len: 0 len_after: 1 | b: [Insert(Tendril<UTF8>(inline: "\n")), Retain(1)] len 1