diff --git a/bitcoin/src/blockdata/block.rs b/bitcoin/src/blockdata/block.rs index 2c19fd163..641f36475 100644 --- a/bitcoin/src/blockdata/block.rs +++ b/bitcoin/src/blockdata/block.rs @@ -73,11 +73,6 @@ crate::internal_macros::define_extension_trait! { } } -mod sealed { - pub trait Sealed {} - impl Sealed for super::Header {} -} - impl Encodable for Version { fn consensus_encode(&self, w: &mut W) -> Result { self.to_consensus().consensus_encode(w) @@ -301,6 +296,11 @@ impl Decodable for Block { } } +mod sealed { + pub trait Sealed {} + impl Sealed for super::Header {} +} + /// An error when looking up a BIP34 block height. #[derive(Debug, Clone, PartialEq, Eq)] #[non_exhaustive]