From 7dc68b62e9f64f8369650bd56dc767dd03649751 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 11 Jul 2024 14:04:48 +1000 Subject: [PATCH] Remove serde from sha256::Midstate The `sha256::Midstate` is a niche use case type, there is no real reason we need to support serialization/deserialization. If people really want this they can just get the byte array and serialize it themselves. API breaking change. --- hashes/src/sha256.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/hashes/src/sha256.rs b/hashes/src/sha256.rs index 97e1e36fd..5a54c0601 100644 --- a/hashes/src/sha256.rs +++ b/hashes/src/sha256.rs @@ -198,7 +198,6 @@ impl fmt::Debug for Midstate { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:#}", self) } } -serde_impl!(Midstate, 32); borrow_slice_impl!(Midstate); impl> Index for Midstate {