diff options
author | Brian Shu | 2021-08-26 18:45:23 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-27 00:50:57 +0000 |
commit | fa4caf7e3d43a40073f6966d37f529d5197bd840 (patch) | |
tree | e9af9d4e6eeaabfa2ae563156f4d0d9266543779 /helix-core/src | |
parent | cec5d437d892767ccbc49cfcb20b4561ce24576d (diff) |
remove unsafe
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/transaction.rs | 2 |
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 |