diff --git a/runtime/errors.rs b/runtime/errors.rs index 19bf5c3f78..f88455b057 100644 --- a/runtime/errors.rs +++ b/runtime/errors.rs @@ -146,7 +146,7 @@ fn get_nix_error_class(error: &nix::Error) -> &'static str { nix::Error::EPERM => "PermissionDenied", nix::Error::ESRCH => "NotFound", nix::Error::UnknownErrno => "Error", - nix::Error::ENOTSUP => unreachable!(), + &nix::Error::ENOTSUP => unreachable!(), _ => "Error", } }