Compile on windows
This commit is contained in:
parent
3157ff3cbb
commit
2faed6267e
3 changed files with 32 additions and 4 deletions
10
src/lib.rs
10
src/lib.rs
|
|
@ -22,6 +22,8 @@ pub enum Error {
|
|||
MessageUnknown,
|
||||
MessageCorrupt,
|
||||
ConnectionReset,
|
||||
ProcFs(String),
|
||||
NotSupported,
|
||||
}
|
||||
|
||||
impl PartialEq for Error {
|
||||
|
|
@ -56,6 +58,14 @@ impl PartialEq for Error {
|
|||
ConnectionReset => true,
|
||||
_ => false,
|
||||
},
|
||||
ProcFs(a) => match other {
|
||||
ProcFs(b) => a == b,
|
||||
_ => false,
|
||||
},
|
||||
NotSupported => match other {
|
||||
NotSupported => true,
|
||||
_ => false,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue