-
Notifications
You must be signed in to change notification settings - Fork 314
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
Should 'ExactlyOneError' implement std-'Error'? #482
Comments
Fine by me |
@njam Would you like to file a PR? This would be sufficient: impl<I: Iterator> Error for ExactlyOneError<I> {} |
I want to PR for a small change to the innards of the thing, so I'll get it. |
See #484 |
I was just wanting this today, since the lack of Error impl makes ExactlyOneError not work well with |
Thanks for poking me on this, @tech6hutch. I've been very busy. :( I'm going to try to chew threw the remaining items in our release milestone this week. |
The
exactly_one()
function was added in #310:For using the early return operator
?
on its result, it would be nice ifExactlyOneError
would implementError
. Or is there any reason not to?cc @Xaeroxe @Centril @bluss
The text was updated successfully, but these errors were encountered: