about summary refs log tree commit diff
path: root/ops/posix_mq.rs/src/error.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-20T11·48+0000
committerVincent Ambo <tazjin@google.com>2020-01-20T11·51+0000
commit0b146dc0792dd51cf8b343a1e9114b06242e9d14 (patch)
treeeaf663f8ce2e29e1b40c5ac787cd8081fc929aa5 /ops/posix_mq.rs/src/error.rs
parent4bc3196c9a2bb0e1f60f19ecece195c8d4900b52 (diff)
chore(ops/posix_mq.rs): Update crate dependencies to recent versions r/431
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.
Diffstat (limited to 'ops/posix_mq.rs/src/error.rs')
-rw-r--r--ops/posix_mq.rs/src/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ops/posix_mq.rs/src/error.rs b/ops/posix_mq.rs/src/error.rs
index 1a0c069a89..1ef585c01e 100644
--- a/ops/posix_mq.rs/src/error.rs
+++ b/ops/posix_mq.rs/src/error.rs
@@ -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(),