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

Impl std::error::Error + Send + 'static for errors::Error. #22

Merged
merged 5 commits into from
Aug 13, 2019

Conversation

onelson
Copy link
Owner

@onelson onelson commented Aug 11, 2019

Basically just adding implementations for Error + Send + 'static for the crate's Error enum. Also includes a couple of small integration tests to ensure we maintain compat with error-chain in the releases to come.

Fixes #21.

Looks like `Error::source` replaces `Error::cause`. Originally I added
them both since I wasn't sure it made sense to only include one or the
other, but since our lowest supported rust version is 1.32, and `source`
was added in 1.30, and `cause` was deprecated as of 1.33, anyone using
this crate will for sure be able to work with `source`.
@onelson onelson marked this pull request as ready for review August 13, 2019 06:38
@onelson onelson merged commit 1f30a1c into master Aug 13, 2019
@onelson onelson changed the title Impl std::error::Error + Send + 'static for errors::Error. Refs #21 Impl std::error::Error + Send + 'static for errors::Error. Aug 13, 2019
@onelson onelson deleted the error-chain-support branch August 13, 2019 06:44
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.

Implement Send for jq_rs::Error
1 participant