From a446df583c7a9f90a33dbd11006516fe044431d2 Mon Sep 17 00:00:00 2001 From: sanket1729 Date: Fri, 20 Jan 2023 07:26:36 -0800 Subject: [PATCH] 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] --- bitcoin/src/address.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bitcoin/src/address.rs b/bitcoin/src/address.rs index 9701bc0c..4daa0bc1 100644 --- a/bitcoin/src/address.rs +++ b/bitcoin/src/address.rs @@ -386,6 +386,7 @@ impl From for opcodes::All { /// The method used to produce an address. #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[non_exhaustive] pub enum Payload { /// P2PKH address. PubkeyHash(PubkeyHash),