diff options
| author | Tolmachev Igor <me@igorek.dev> | 2024-08-27 18:03:30 +0900 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2024-08-27 18:03:30 +0900 |
| commit | 27da50f9d157927ec56dae8316d0edc34eaa244d (patch) | |
| tree | 1dc63d0bcdb22086e24f4dbf1f9902f8f97cd0d9 /src/zip/error.rs | |
| parent | a24ae8622cc2f829a8101a7f812fc98297053cc3 (diff) | |
| download | archivator-27da50f9d157927ec56dae8316d0edc34eaa244d.tar.gz archivator-27da50f9d157927ec56dae8316d0edc34eaa244d.zip | |
Rewrite Eocdr64Locator search algorithm
Diffstat (limited to 'src/zip/error.rs')
| -rw-r--r-- | src/zip/error.rs | 8 |
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 { | |||
| 31 | impl PartialEq for ZipError { | 31 | impl 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 | } |
