diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index 6b94dfc8..6b4847a9 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -39,7 +39,7 @@ impl Hash { impl Copy for Hash {} impl Clone for Hash { - fn clone(&self) -> Self { Hash(self.0, self.1) } + fn clone(&self) -> Self { *self } } impl PartialEq for Hash { fn eq(&self, other: &Hash) -> bool { self.0 == other.0 }