aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/transaction.rs
diff options
context:
space:
mode:
authorPhilipp Mildenberger2023-07-27 02:57:19 +0000
committerGitHub2023-07-27 02:57:19 +0000
commit8a28f3059398eec7b5496bb1088b4d9870e6eb7e (patch)
tree77cf35ee489ed5367dc2a1ac8b4a0600530ded37 /helix-core/src/transaction.rs
parent262a595e5343c5afd0f2570859b63ebf4c12b0fa (diff)
Reformat with nightly rustfmt for better let-else formatting (#7721)
Diffstat (limited to 'helix-core/src/transaction.rs')
-rw-r--r--helix-core/src/transaction.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs
index fec62578..1cea6911 100644
--- a/helix-core/src/transaction.rs
+++ b/helix-core/src/transaction.rs
@@ -389,7 +389,10 @@ impl ChangeSet {
}
let Some((i, change)) = iter.next() else {
- map!(|pos, _| (old_pos == pos).then_some(new_pos), self.changes.len());
+ map!(
+ |pos, _| (old_pos == pos).then_some(new_pos),
+ self.changes.len()
+ );
break;
};