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

Migrate errors to the modern thiserror #7

Merged
merged 2 commits into from Jan 11, 2020
Merged

Conversation

nagisa
Copy link
Collaborator

@nagisa nagisa commented Jan 8, 2020

Fixes #6

@nagisa
Copy link
Collaborator Author

@nagisa nagisa commented Jan 8, 2020

NB: this is an API-breaking change.

@nagisa
Copy link
Collaborator Author

@nagisa nagisa commented Jan 9, 2020

@lucab btw if you want I can take over maintaining this crate.

before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RUST_VERSION" ]]; then
Copy link
Owner

@lucab lucab Jan 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually keep this pattern to avoid breaking master when new clippy lints are introduced. Would it be fine for you to keep a pinned toolchain for clippy?

@lucab
Copy link
Owner

@lucab lucab commented Jan 10, 2020

Happy to both land this, and give you github and crates.io access. I've left just a minor comment on the PR.
For reference, if your consumer is already using the nix crate, they recently added memfd support too: https://docs.rs/nix/0.16.1/nix/sys/memfd/index.html

@nagisa
Copy link
Collaborator Author

@nagisa nagisa commented Jan 10, 2020

Should be good to go now.


I don’t exactly like nix the crate much. Used it for something else in the past and ended up moving away from it for multiple reasons.

lucab
lucab approved these changes Jan 11, 2020
Copy link
Owner

@lucab lucab left a comment

LGTM

@lucab lucab merged commit 5bb07b6 into lucab:master Jan 11, 2020
1 check passed
@nagisa nagisa deleted the error-cleanup branch Jan 11, 2020
@nagisa
Copy link
Collaborator Author

@nagisa nagisa commented Jan 11, 2020

Can you please release a version with this?

@lucab lucab mentioned this pull request Jan 11, 2020
@lucab
Copy link
Owner

@lucab lucab commented Jan 11, 2020

Published as https://crates.io/crates/memfd/0.3.0.

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.

2 participants