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:
parent
d5b148d400
commit
55200924e4
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue