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
There are places where we want to return an error in a method that returns Result<Something, Error> and are forced to do nasty things like Error::crate_config("...").map(|_| unreachable!()) to make it type check. At this point, it would be easier to just do Err(Error::crate_config("..")) everywhere after changing the Error constructors to return Self.
The text was updated successfully, but these errors were encountered:
I'd love to help out with this one! I remember doing this for #244, and pulling it out so the PR would be a little cleaner. I don't think it would be hard to do again 😸
There are places where we want to return an error in a method that returns
Result<Something, Error>
and are forced to do nasty things likeError::crate_config("...").map(|_| unreachable!())
to make it type check. At this point, it would be easier to just doErr(Error::crate_config(".."))
everywhere after changing theError
constructors to returnSelf
.The text was updated successfully, but these errors were encountered: