diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-05 07:42:24 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-05 07:49:11 -0800 |
commit | a79d228de73141f9e816d4f23ebd0c8c4ed37f6f (patch) | |
tree | 2dfee7ef34d5c4006145b9a71dddaddbc8f46ea0 /src | |
parent | c1a02f32073c0a87bb91fb24808e3c03fd7517d7 (diff) | |
download | nix-a79d228de73141f9e816d4f23ebd0c8c4ed37f6f.zip |
Derive Eq for Errno
Diffstat (limited to 'src')
-rw-r--r-- | src/errno.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/errno.rs b/src/errno.rs index 67171795..aa152170 100644 --- a/src/errno.rs +++ b/src/errno.rs @@ -515,7 +515,7 @@ fn desc(errno: Errno) -> &'static str { mod consts { use libc; - #[derive(Debug, Clone, PartialEq, Copy)] + #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(i32)] pub enum Errno { UnknownErrno = 0, @@ -804,7 +804,7 @@ mod consts { mod consts { use libc; - #[derive(Copy, Debug, Clone, PartialEq)] + #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(i32)] pub enum Errno { UnknownErrno = 0, @@ -1042,7 +1042,7 @@ mod consts { mod consts { use libc; - #[derive(Copy, Debug, Clone, PartialEq)] + #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(i32)] pub enum Errno { UnknownErrno = 0, @@ -1261,7 +1261,7 @@ mod consts { mod consts { use libc; - #[derive(Copy, Debug, Clone, PartialEq)] + #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(i32)] pub enum Errno { UnknownErrno = 0, @@ -1487,7 +1487,7 @@ mod consts { mod consts { use libc; - #[derive(Copy, Debug, Clone, PartialEq)] + #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(i32)] pub enum Errno { UnknownErrno = 0, @@ -1694,7 +1694,7 @@ mod consts { mod consts { use libc; - #[derive(Copy, Debug, Clone, PartialEq)] + #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(i32)] pub enum Errno { UnknownErrno = 0, |