From 9b81a8a2ed1c4f138c592468979e927aa1178830 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 27 Jan 2025 10:36:39 +1100 Subject: [PATCH] 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. --- hashes/src/sha256t.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index cb3f4aaaa..6c62846c8 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -119,9 +119,6 @@ impl PartialEq for Hash { fn eq(&self, other: &Hash) -> bool { self.0 == other.0 } } impl Eq for Hash {} -impl Default for Hash { - fn default() -> Self { Hash([0; 32], PhantomData) } -} impl PartialOrd for Hash { fn partial_cmp(&self, other: &Hash) -> Option { Some(cmp::Ord::cmp(self, other))