Commit e86a56c
committed
primitives: renamed TransactionDecoderError::Transitioning to Errored
Search-and-replace the error variant name, and update all the panic
conditions that are triggered by it. From a user point of view this
state does not represent "transitioning". It represents that we
called end() on a sub-decoder and that call yielded an error,
leaving us with no meaningful state.
The docs for Decoder::end and Decoder::current_chunk say that after
returning the initial error we are allowed to panic; update the panic
message to say that this is what we're doing. (We also have a panic
in read_limit, which we are not allowed to do, so replace that with
a dummy value return.)
No observable behavior changes except that some panic messages change.1 parent 681af66 commit e86a56c
1 file changed
+10
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | | - | |
427 | | - | |
| 425 | + | |
428 | 426 | | |
429 | 427 | | |
430 | 428 | | |
431 | | - | |
| 429 | + | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
| |||
509 | 507 | | |
510 | 508 | | |
511 | 509 | | |
512 | | - | |
513 | | - | |
514 | | - | |
| 510 | + | |
515 | 511 | | |
516 | 512 | | |
517 | 513 | | |
| |||
528 | 524 | | |
529 | 525 | | |
530 | 526 | | |
531 | | - | |
532 | | - | |
533 | | - | |
| 527 | + | |
534 | 528 | | |
535 | 529 | | |
536 | 530 | | |
| |||
546 | 540 | | |
547 | 541 | | |
548 | 542 | | |
549 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
550 | 546 | | |
551 | 547 | | |
552 | 548 | | |
| |||
574 | 570 | | |
575 | 571 | | |
576 | 572 | | |
577 | | - | |
578 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
579 | 576 | | |
580 | 577 | | |
581 | 578 | | |
| |||
0 commit comments