Skip to content

Commit 699a4bd

Browse files
committed
Merge #1054: Mark WalletPolicyError as non-exhaustive
2b739c9 fix(wallet_policy): mark WalletPolicyError as non-exhaustive (Trevor Arjeski) Pull request description: Mark WalletPolicyError as #[non_exhaustive] so future error variants can be added without breaking downstream exhaustive matches. ACKs for top commit: apoelstra: ACK 2b739c9; successfully ran local tests Tree-SHA512: 9905f76bc45f2d3ef4a1d1f267c68108883e4802fe9f130a3b543eccc25d0a8141e9638903eddb7bb669d4ae713e0e182c9f7f0680f2ef6260d2c051f9071cd3
2 parents 8b9fbde + 2b739c9 commit 699a4bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/descriptor/wallet_policy

‎src/descriptor/wallet_policy/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ impl FromStr for WalletPolicy {
142142

143143
/// WalletPolicy errors
144144
#[derive(Debug, PartialEq, Eq, Clone)]
145+
#[non_exhaustive]
145146
pub enum WalletPolicyError {
146147
/// A derivation path must be present when parsing a KeyExpression
147148
KeyExpressionParseMustHaveDerivPath,

0 commit comments

Comments
 (0)