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

Error as i32 #977

Merged
merged 2 commits into from Nov 27, 2018
Merged

Error as i32 #977

merged 2 commits into from Nov 27, 2018

Conversation

@asomers
Copy link
Member

@asomers asomers commented Nov 21, 2018

Add Error::as_errno

This method is useful when it can be statically determined that a nix::Error be an errno, which I find to be very common.

Also, fix some recently introduced compiler warnings.

@asomers asomers force-pushed the asomers:error_as_i32 branch from a6df3b7 to 92e5c01 Nov 22, 2018
asomers added 2 commits Nov 21, 2018
This method is useful when it can be statically determined that a
nix::Error be an errno, which I find to be very common.
@asomers asomers force-pushed the asomers:error_as_i32 branch from 92e5c01 to f7be5da Nov 23, 2018
@asomers asomers added this to the 0.12.0 milestone Nov 26, 2018
Copy link
Member Author

@asomers asomers left a comment

bors r+

bors bot added a commit that referenced this pull request Nov 27, 2018
Merge #977
977: Error as i32 r=asomers a=asomers

 Add Error::as_errno

This method is useful when it can be statically determined that a nix::Error be an errno, which I find to be very common.

Also, fix some recently introduced compiler warnings.

Co-authored-by: Alan Somers <asomers@gmail.com>
@bors bors bot merged commit f7be5da into nix-rust:master Nov 27, 2018
4 checks passed
4 checks passed
bors Build succeeded
Details
buildbot/nix-rust/nix amd64_fbsd11 Build done.
Details
buildbot/nix-rust/nix i386_fbsd11 Build done.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant