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.
This commit is contained in:
parent
07e8e5d3a6
commit
7dc68b62e9
|
@ -198,7 +198,6 @@ impl fmt::Debug for Midstate {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:#}", self) }
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:#}", self) }
|
||||||
}
|
}
|
||||||
|
|
||||||
serde_impl!(Midstate, 32);
|
|
||||||
borrow_slice_impl!(Midstate);
|
borrow_slice_impl!(Midstate);
|
||||||
|
|
||||||
impl<I: SliceIndex<[u8]>> Index<I> for Midstate {
|
impl<I: SliceIndex<[u8]>> Index<I> for Midstate {
|
||||||
|
|
Loading…
Reference in New Issue