Skip to content

Implement hash::Hash for Miniscript #402

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

Merged
merged 1 commit into from
May 15, 2022

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
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