(receipts: &mut [EffectReceipt])
| 4580 | } |
| 4581 | |
| 4582 | fn sort_receipts(receipts: &mut [EffectReceipt]) { |
| 4583 | receipts.sort_by_key(|receipt| { |
| 4584 | let payload = receipt.payload(); |
| 4585 | ( |
| 4586 | payload.effect_ordinal.unwrap_or(u32::MAX), |
| 4587 | payload.attempt, |
| 4588 | receipt_kind_order(payload.kind), |
| 4589 | receipt.id(), |
| 4590 | ) |
| 4591 | }); |
| 4592 | } |
| 4593 | |
| 4594 | fn receipt_kind_order(kind: EffectReceiptKind) -> u8 { |
| 4595 | match kind { |
no test coverage detected