From 55200924e48477201c05af0a2629c7e3bfbc201d Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 6 Nov 2024 13:12:27 +1100 Subject: [PATCH] Move Sealed to bottom of file In preparation for adding `Block` to the private `sealed` module move the module down to the bottom of the file. --- bitcoin/src/blockdata/block.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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]