diff options
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r-- | helix-core/src/transaction.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index 000782dd..ce0174a6 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -314,10 +314,7 @@ impl ChangeSet { /// `true` when the set is empty. #[inline] pub fn is_empty(&self) -> bool { - match self.changes.as_slice() { - [] | [Operation::Retain(_)] => true, - _ => false, - } + matches!(self.changes.as_slice(), [] | [Operation::Retain(_)]) } /// Map a position through the changes. |