From 27da50f9d157927ec56dae8316d0edc34eaa244d Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Tue, 27 Aug 2024 18:03:30 +0900 Subject: Rewrite Eocdr64Locator search algorithm --- src/zip/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zip/error.rs') 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 for ZipError { impl PartialEq for ZipError { fn eq(&self, other: &Self) -> bool { match (self, other) { - (Self::Io(l0), Self::Io(r0)) => l0.kind() == r0.kind(), - (Self::StructNotFound(l0), Self::StructNotFound(r0)) => l0 == r0, - (Self::InvalidSignature(l0), Self::InvalidSignature(r0)) => l0 == r0, - (Self::InvalidField(l0), Self::InvalidField(r0)) => l0 == r0, + (Self::Io(l), Self::Io(r)) => l.kind() == r.kind(), + (Self::StructNotFound(l), Self::StructNotFound(r)) => l == r, + (Self::InvalidSignature(l), Self::InvalidSignature(r)) => l == r, + (Self::InvalidField(l), Self::InvalidField(r)) => l == r, (Self::Overlapping(l0, l1), Self::Overlapping(r0, r1)) => l0 == r0 && l1 == r1, _ => core::mem::discriminant(self) == core::mem::discriminant(other), } -- cgit v1.2.3