From a79d228de73141f9e816d4f23ebd0c8c4ed37f6f Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Tue, 5 Dec 2017 07:42:24 -0800 Subject: Derive Eq for Errno --- src/errno.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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, -- cgit v1.2.3