Skip to content

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

Open
Ryman wants to merge 5 commits into
nickel-org:masterfrom
Ryman:flosse-error-handling-rebased
Open

fix(error_handling): introduce IntoError trait to reduce coherence issues#358
Ryman wants to merge 5 commits into
nickel-org:masterfrom
Ryman:flosse-error-handling-rebased

Conversation

@Ryman

@Ryman Ryman commented Jul 11, 2016

Copy link
Copy Markdown
Member

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

hjr3 commented Jul 12, 2016

Copy link
Copy Markdown
Contributor

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