]> Untitled Git - bdk/commitdiff
refactor(wallet)!: Make `bdk_wallet::ChangeSet` non-exhaustive
author志宇 <hello@evanlinjin.me>
Thu, 18 Jul 2024 05:47:12 +0000 (05:47 +0000)
committer志宇 <hello@evanlinjin.me>
Thu, 18 Jul 2024 05:47:12 +0000 (05:47 +0000)
crates/wallet/src/wallet/changeset.rs

index 8031f07a0f36831b72044d8d3dd06c534994e2fe..0b1602953bf96ab704c461b7adb5ea789927046e 100644 (file)
@@ -8,6 +8,7 @@ type IndexedTxGraphChangeSet =
 
 /// A changeset for [`Wallet`](crate::Wallet).
 #[derive(Default, Debug, Clone, PartialEq, serde::Deserialize, serde::Serialize)]
+#[non_exhaustive]
 pub struct ChangeSet {
     /// Descriptor for recipient addresses.
     pub descriptor: Option<Descriptor<DescriptorPublicKey>>,