Make Payload non-exhaustive

It is unlikely that we will see another segwit type fork. But we never
know, best to mark Payload as [non-exhaustive]
This commit is contained in:
sanket1729 2023-01-20 07:26:36 -08:00
parent 6ebc9de252
commit a446df583c
1 changed files with 1 additions and 0 deletions

View File

@ -386,6 +386,7 @@ impl From<WitnessVersion> for opcodes::All {
/// The method used to produce an address. /// The method used to produce an address.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[non_exhaustive]
pub enum Payload { pub enum Payload {
/// P2PKH address. /// P2PKH address.
PubkeyHash(PubkeyHash), PubkeyHash(PubkeyHash),