Commit eabb1d6
committed
feat!: Add #[non_exhaustive] to ChangeSet structs in tx_graph, keychain_txout, local_chain
Add #[non_exhaustive] attribute to the ChangeSet structs to prevent downstream
crates from exhaustively matching or constructing instances using struct
literal syntax, allowing future additions without breaking compatibility.
The change improves forward compatibility by allowing new fields to be added
without breaking downstream code in future releases.1 parent 63923c6 commit eabb1d6
File tree
3 files changed
+4
-0
lines changed- crates/chain/src
- indexer
3 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
| 1024 | + | |
1024 | 1025 | | |
1025 | 1026 | | |
1026 | 1027 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
1415 | 1416 | | |
1416 | 1417 | | |
1417 | 1418 | | |
| 1419 | + | |
1418 | 1420 | | |
1419 | 1421 | | |
1420 | 1422 | | |
| |||
0 commit comments