-
Notifications
You must be signed in to change notification settings - Fork 173
plan: Derive PartialEq, Eq, Hash for Assets #888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Yeah, for sure. This is just a big container type. |
apoelstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 2d8e99d; successfully ran local tests
apoelstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 2d8e99d; successfully ran local tests
(Excuse the noise -- I am testing a new local CI setup. Hopefully everything is
running smoothly again by Monday.)
apoelstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 2d8e99d; successfully ran local tests
(Excuse the noise -- I am testing a new local CI setup. Hopefully everything is
running smoothly again by Monday.)
|
Nice, it worked. |
|
Hmm, no, it didn't. It pushed the github merge with no signature. Crap. |
|
Force-pushed the merge away. Will try to fix and re-push. |
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: f0bb165a743be6b6fce6f13d995d256b92eaa5c1daa6870ea9edb9aabbf6594e1f7501812a98e98da0da0a8f64802a1c93bbeaba57b8f4a346b1083ef673d903
|
Done. Will move on to another PR and see what's up with my "determine whether commit has been signed" logic.. |
Adds
PartialEq,Eq, andHashderives to theAssetsstruct, enabling it to be used as a hashmap key and compared for equality.All fields in
Assetsalready implement these traits (BTreeSet, Option, etc.), and similar structs in the same module likeCanSignandTaprootCanSignalready derive them. This makes the API more consistent and useful for testing and practical applications where comparing or storingAssetsinstances is needed.