Zalathar 44d1d86124 libtest: Pass the test's panic payload as Option instead of Result
Passing a `Result<(), &dyn Any>` to `calc_result` requires awkward code at both
call sites, for no real benefit. It's much easier to just pass the payload as
`Option<&dyn Any>`.

No functional change, except that the owned payload is dropped slightly later.
2025-04-08 13:28:05 +10:00
..
2025-03-11 09:46:34 -07:00