hashes: Remove sha256t::Hash Default impl

The other hash types do not implement `Default` but the tagged one does
still - bad bitcoin devs, no biscuit.
This commit is contained in:
Tobin C. Harding 2025-01-27 10:36:39 +11:00
parent 28b867d8de
commit 9b81a8a2ed
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 0 additions and 3 deletions

View File

@ -119,9 +119,6 @@ impl<T: Tag> PartialEq for Hash<T> {
fn eq(&self, other: &Hash<T>) -> bool { self.0 == other.0 } fn eq(&self, other: &Hash<T>) -> bool { self.0 == other.0 }
} }
impl<T: Tag> Eq for Hash<T> {} impl<T: Tag> Eq for Hash<T> {}
impl<T: Tag> Default for Hash<T> {
fn default() -> Self { Hash([0; 32], PhantomData) }
}
impl<T: Tag> PartialOrd for Hash<T> { impl<T: Tag> PartialOrd for Hash<T> {
fn partial_cmp(&self, other: &Hash<T>) -> Option<cmp::Ordering> { fn partial_cmp(&self, other: &Hash<T>) -> Option<cmp::Ordering> {
Some(cmp::Ord::cmp(self, other)) Some(cmp::Ord::cmp(self, other))