Skip to content

Commit a79d228

Browse files
author
Bryant Mairs
committed
Derive Eq for Errno
1 parent c1a02f3 commit a79d228

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/errno.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ fn desc(errno: Errno) -> &'static str {
515515
mod consts {
516516
use libc;
517517

518-
#[derive(Debug, Clone, PartialEq, Copy)]
518+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
519519
#[repr(i32)]
520520
pub enum Errno {
521521
UnknownErrno = 0,
@@ -804,7 +804,7 @@ mod consts {
804804
mod consts {
805805
use libc;
806806

807-
#[derive(Copy, Debug, Clone, PartialEq)]
807+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
808808
#[repr(i32)]
809809
pub enum Errno {
810810
UnknownErrno = 0,
@@ -1042,7 +1042,7 @@ mod consts {
10421042
mod consts {
10431043
use libc;
10441044

1045-
#[derive(Copy, Debug, Clone, PartialEq)]
1045+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
10461046
#[repr(i32)]
10471047
pub enum Errno {
10481048
UnknownErrno = 0,
@@ -1261,7 +1261,7 @@ mod consts {
12611261
mod consts {
12621262
use libc;
12631263

1264-
#[derive(Copy, Debug, Clone, PartialEq)]
1264+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
12651265
#[repr(i32)]
12661266
pub enum Errno {
12671267
UnknownErrno = 0,
@@ -1487,7 +1487,7 @@ mod consts {
14871487
mod consts {
14881488
use libc;
14891489

1490-
#[derive(Copy, Debug, Clone, PartialEq)]
1490+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
14911491
#[repr(i32)]
14921492
pub enum Errno {
14931493
UnknownErrno = 0,
@@ -1694,7 +1694,7 @@ mod consts {
16941694
mod consts {
16951695
use libc;
16961696

1697-
#[derive(Copy, Debug, Clone, PartialEq)]
1697+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
16981698
#[repr(i32)]
16991699
pub enum Errno {
17001700
UnknownErrno = 0,

0 commit comments

Comments
 (0)