You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably okay here since (in theory) self.node implies all the other fields but if we're going to make that explicit for PartialEq we should do the same for Hash as well.
4ac68c9 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 4ac68c9
Tree-SHA512: 7920481034bee12fbfdbdfac2f38e9598e25a13a8a89b6b50cc7f63ce528c2de47e959ad073ac1c8f1ab64d4b0e432d264a5caf74ddb656c1a0ffbd8923faf6f
joemphilips
pushed a commit
to joemphilips/rust-miniscript
that referenced
this issue
Dec 9, 2022
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
For the
Miniscript
structClippy warns us that we are deriving
Hash
and using a custom implementation ofPartialEq
, this is likely wrong as explained in the lint docs.Here is the clippy warning
The text was updated successfully, but these errors were encountered: