-
Notifications
You must be signed in to change notification settings - Fork 65
Remove unused generic #193
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
Remove unused generic #193
Conversation
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 d0905b0
d0905b0
to
725df12
Compare
Force push is rebase only, will still need another one once #192 merges. |
Turns out `clippy` does not warn for unused generics. Fix: rust-bitcoin#191
725df12
to
7bdabff
Compare
Rebase only, no code changes. |
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 7bdabff successfully ran local tests; note that this is technically a breaking change
@tcharding why was that unused argument added there? very confused by this |
I think this was my code, and the reason is that an early iteration of this API had a ton of generic iterators. The idea was that you could turn any iterator over bytes into one over Fes, any one over Fes into one that added a checksum, etc, etc. But it turned out that the resulting API was super confusing and undiscoverable (and sometimes impossible to implement because of stdlib bugs ( So I switched to this API with specific iterator types that have to be called in a specific order and things are simpler. |
Oh, wait. Your question is about this PR which replaces the unused generic (which I explained above) with an unused Cut/paste error? Very strange. @tcharding Which I didn't see, and I think Clark didn't see either, because the diff looks so much like line noise.. |
Ha, by looking at the PR I have no idea what so ever. #222 |
Turns out
clippy
does not warn for unused generics.Post merge edit for when we write changlog: API breaking change.
Fix: #191