You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, the advice was to go from error_chain to failure, but now failure is also deprecated.
Our use of errors{} in the error_chain! macro uses description and display to generate the errors, which is now deprecated, preferring impl Display. That's way more verbose, so there must be a way to generate/derive our errors cleanly. The error_chain documentation has not been updated to describe how to use the new syntax.
failure - a new error management story
Notice: failure is deprecated. If you liked failure's API, consider using:
Anyhow is a good replacement for failure::Error.
thiserror is a good, near drop-in replacement for #[derive(Fail)]
The text was updated successfully, but these errors were encountered:
Previously, the advice was to go from
error_chain
tofailure
, but nowfailure
is also deprecated.Our use of
errors{}
in theerror_chain!
macro usesdescription
anddisplay
to generate the errors, which is now deprecated, preferringimpl Display
. That's way more verbose, so there must be a way to generate/derive our errors cleanly. The error_chain documentation has not been updated to describe how to use the new syntax.The text was updated successfully, but these errors were encountered: