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.
This commit is contained in:
Tobin C. Harding 2024-11-06 13:12:27 +11:00
parent d5b148d400
commit 55200924e4
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 5 additions and 5 deletions

View File

@ -73,11 +73,6 @@ crate::internal_macros::define_extension_trait! {
} }
} }
mod sealed {
pub trait Sealed {}
impl Sealed for super::Header {}
}
impl Encodable for Version { impl Encodable for Version {
fn consensus_encode<W: Write + ?Sized>(&self, w: &mut W) -> Result<usize, io::Error> { fn consensus_encode<W: Write + ?Sized>(&self, w: &mut W) -> Result<usize, io::Error> {
self.to_consensus().consensus_encode(w) 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. /// An error when looking up a BIP34 block height.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive] #[non_exhaustive]