chore(ops/posix_mq.rs): Update crate dependencies to recent versions

First bump since 2017! This changes the code to be compatible with
newer versions of the `nix` crate, which has shuffled things around a
bit.
This commit is contained in:
Vincent Ambo 2020-01-20 11:48:35 +00:00
parent 4bc3196c9a
commit 0b146dc079
5 changed files with 18 additions and 26 deletions

View file

@ -43,7 +43,7 @@ pub enum Error {
// If an unhandled / unknown / unexpected error occurs this error will be used.
// In those cases bug reports would be welcome!
UnknownForeignError(nix::Errno),
UnknownForeignError(nix::errno::Errno),
// Some other unexpected / unknown error occured. This is probably an error from
// the nix crate. Bug reports also welcome for this!
@ -112,8 +112,8 @@ impl From<num::ParseIntError> for Error {
}
fn match_errno(err: nix::Errno) -> Error {
use nix::errno::*;
fn match_errno(err: nix::errno::Errno) -> Error {
use nix::errno::Errno::*;
match err {
EACCES => Error::PermissionDenied(),