Skip to content

Conversation

@tcharding
Copy link
Member

We manually implement a bunch of traits on Miniscript that pass through to the node field (e.g. PartialEq). We should do the same for hash::Hash instead of deriving it.

Found by clippy.

Fixes: #381

We manually implement a bunch of traits on `Miniscript` that pass
through to the `node` field (e.g. `PartialEq`). We should do the same
for `hash::Hash` instead of deriving it.

Found by clippy.

Fixes: rust-bitcoin#381
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 4ac68c9

@sanket1729 sanket1729 merged commit 104eb55 into rust-bitcoin:master May 15, 2022
@tcharding tcharding deleted the 05-11-impl-hash branch May 16, 2022 01:21
heap-coder added a commit to heap-coder/rust-miniscript that referenced this pull request Sep 27, 2025
…script

4ac68c9b24745e5ec28ef865ed0e9ea8af97b30c Implement hash::Hash for Miniscript (Tobin C. Harding)

Pull request description:

  We manually implement a bunch of traits on `Miniscript` that pass through to the `node` field (e.g. `PartialEq`). We should do the same for `hash::Hash` instead of deriving it.

  Found by clippy.

  Fixes: #381

ACKs for top commit:
  apoelstra:
    ACK 4ac68c9b24745e5ec28ef865ed0e9ea8af97b30c

Tree-SHA512: 7920481034bee12fbfdbdfac2f38e9598e25a13a8a89b6b50cc7f63ce528c2de47e959ad073ac1c8f1ab64d4b0e432d264a5caf74ddb656c1a0ffbd8923faf6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Derive Hash while manually implementing PartialEq

3 participants