fix: add hasher clone to access result method

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 19:39:32 -03:00
parent 6ceac4a91e
commit 64aaf5d4d5

View File

@@ -13,7 +13,7 @@ impl DigestEngineSha256 {
// Manual implementation of PartialEq // Manual implementation of PartialEq
fn eq(&self, other: &Self) -> bool { 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 // Manual implementation of Eq