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
{{ message }}
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
IMO, this is a bit non-idiomatic. Especially conversion into other custom error types is more involved than it should be. For example, thiserror offers a #[from] attribute which auto-generates a From implementation. This, however, expects the source error type to implement std::error::Error.
As an alternative, we could just derive thiserror::Error which will generate a std::error::Error implementation.
WDYT?
The text was updated successfully, but these errors were encountered:
EnrError currently is a plain struct.
IMO, this is a bit non-idiomatic. Especially conversion into other custom error types is more involved than it should be. For example, thiserror offers a #[from] attribute which auto-generates a
From
implementation. This, however, expects the source error type to implementstd::error::Error
.As an alternative, we could just derive thiserror::Error which will generate a
std::error::Error
implementation.WDYT?
The text was updated successfully, but these errors were encountered: