Remove unused generic#193
Conversation
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. |
|
@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
clippydoes not warn for unused generics.Post merge edit for when we write changlog: API breaking change.
Fix: #191