Closed shepmaster closed 4 years ago
Right now, sometimes we end up with code like
Variant.fail::<()>.unwrap_err()
This usually occurs when interoperating with systems that already have a Result, such as when used in Result::map_err.
Result
Result::map_err
We could add a new function that just generates the error, not wrapping it.
Related but different from the comment in #46:
manually construct an error variant with a source error
Right now, sometimes we end up with code like
This usually occurs when interoperating with systems that already have a
Result
, such as when used inResult::map_err
.We could add a new function that just generates the error, not wrapping it.
Related but different from the comment in #46: