aboutsummaryrefslogtreecommitdiff
path: root/src/zip/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/zip/error.rs')
-rw-r--r--src/zip/error.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zip/error.rs b/src/zip/error.rs
index fbc2ba1..40d45fe 100644
--- a/src/zip/error.rs
+++ b/src/zip/error.rs
@@ -31,10 +31,10 @@ impl From<IoError> for ZipError {
31impl PartialEq for ZipError { 31impl PartialEq for ZipError {
32 fn eq(&self, other: &Self) -> bool { 32 fn eq(&self, other: &Self) -> bool {
33 match (self, other) { 33 match (self, other) {
34 (Self::Io(l0), Self::Io(r0)) => l0.kind() == r0.kind(), 34 (Self::Io(l), Self::Io(r)) => l.kind() == r.kind(),
35 (Self::StructNotFound(l0), Self::StructNotFound(r0)) => l0 == r0, 35 (Self::StructNotFound(l), Self::StructNotFound(r)) => l == r,
36 (Self::InvalidSignature(l0), Self::InvalidSignature(r0)) => l0 == r0, 36 (Self::InvalidSignature(l), Self::InvalidSignature(r)) => l == r,
37 (Self::InvalidField(l0), Self::InvalidField(r0)) => l0 == r0, 37 (Self::InvalidField(l), Self::InvalidField(r)) => l == r,
38 (Self::Overlapping(l0, l1), Self::Overlapping(r0, r1)) => l0 == r0 && l1 == r1, 38 (Self::Overlapping(l0, l1), Self::Overlapping(r0, r1)) => l0 == r0 && l1 == r1,
39 _ => core::mem::discriminant(self) == core::mem::discriminant(other), 39 _ => core::mem::discriminant(self) == core::mem::discriminant(other),
40 } 40 }