From 64aaf5d4d56e2bf06f4c7915c9973d1d59533b75 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 19:39:32 -0300 Subject: [PATCH] fix: add hasher clone to access result method --- src/digest_engine/sha2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/digest_engine/sha2.rs b/src/digest_engine/sha2.rs index e430cc4..35742cb 100644 --- a/src/digest_engine/sha2.rs +++ b/src/digest_engine/sha2.rs @@ -13,7 +13,7 @@ impl DigestEngineSha256 { // Manual implementation of PartialEq fn eq(&self, other: &Self) -> bool { - self.hasher.result().as_slice() == other.hasher.result().as_slice() + self.hasher.clone().result().as_slice() == other.hasher.clone().result().as_slice() } // Manual implementation of Eq