mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
44d1d86124
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.