Skip to content
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

fix(error_handling): introduce IntoError trait to reduce coherence issues #358

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Ryman
Copy link
Member

@Ryman Ryman commented Jul 11, 2016

Rebase-ish of #304

I don't think this will actually be that breaking, but since it is breaking I'd like to get it in with the next release.

The related PR came up during nickel-org/nickel-postgres#17 (comment) as well which was getting coherence problems which this should hopefully fix.

cc @flosse @hjr3

Ryman and others added 5 commits July 12, 2016 00:15
The previous reliance on the From and Into traits lead to coherence
violations for users who may want to implement anything more than a
simple mapping to a String or StatusCode.

BREAKING CHANGE:
The error_handling example and the IntoError trait documentation
have a number of different examples of trait implementation, for both
foreign types and crate local types. Hopefully they should cover most
of the usage which may be broken from this change.
…fn pointers

This should be strictly more generic and should hopefully not be
considered a breaking change.
@hjr3
Copy link
Contributor

hjr3 commented Jul 12, 2016

This is great! The examples are clear and I do not see any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants