mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 12:35:31 +00:00
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.