]> Untitled Git - bdk/commitdiff
fix!(wallet): `ChangeSet` should not be non-exhaustive
author志宇 <hello@evanlinjin.me>
Thu, 26 Sep 2024 08:28:38 +0000 (16:28 +0800)
committer志宇 <hello@evanlinjin.me>
Thu, 26 Sep 2024 08:28:38 +0000 (16:28 +0800)
As stated in #1591, it is handy to know when new values are added to
`ChangeSet`.

crates/wallet/src/wallet/changeset.rs

index 2d4b700ed19e6053f66ddfe8fd19f382bc2755b6..9c75a289d741b43c17864a29a02c5c027a568a0a 100644 (file)
@@ -8,7 +8,6 @@ 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>>,