Commit d3f7df7
committed
Merge #888: plan: Derive PartialEq, Eq, Hash for Assets
2d8e99d plan: Derive PartialEq, Eq, Hash for Assets (lmorett1)
Pull request description:
Adds `PartialEq`, `Eq`, and `Hash` derives to the `Assets` struct, enabling it to be used as a hashmap key and compared for equality.
All fields in `Assets` already implement these traits (BTreeSet, Option, etc.), and similar structs in the same module like `CanSign` and `TaprootCanSign` already derive them. This makes the API more consistent and useful for testing and practical applications where comparing or storing `Assets` instances is needed.
ACKs for top commit:
apoelstra:
ACK 2d8e99d; successfully ran local tests
Tree-SHA512: f0bb165a743be6b6fce6f13d995d256b92eaa5c1daa6870ea9edb9aabbf6594e1f7501812a98e98da0da0a8f64802a1c93bbeaba57b8f4a346b1083ef673d9031 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
0 commit comments