-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert errors in Accumulator::handle #252
Comments
@ijackson do you recall if there was a reason we didn't do this before? Was it causing problems with type inference? |
I don't think so. I think |
If someone makes an MR branch, I can do experimental builds of |
Currently,
Accumulator::handle
accepts adarling::Result<T>
. This doesn't play nice when using it with non-darling errors (for example, to handlesyn
error one has to write:If
Accumulator::handle
wound acceptResult<T, E> where E: Into<darling::Error>
, it would allow to handle other errors without explicit conversion, the same way the?
operator worksThe text was updated successfully, but these errors were encountered: