-
Notifications
You must be signed in to change notification settings - Fork 52
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
Do a bunch of cleanups #154
Conversation
We have one single rustdoc line that does not use a fixed column width as the rest do, this is likely an oversight - fix it.
In the `SegwitHrpstringError` we return the `MissingWitnessVersion` variant when the encoded data is empty. While true, the witness version is missing this error is not totally descriptive because the error case is more specific than that. Rename `SegwitHrpstringError::MissingWitnessVersion` to `SegwitHrpstringError::NoData`.
The `crate::{encode, decode}` API is for encoding/decoding bech32 strings not specifically addresses (for example miniscript descriptors are bech32 strings but not addresses). Use the words "bech32 string" instead of "address" in `lib.rs`.
3771167
to
79f0bb0
Compare
Can you find a citation for the |
Oh its definitely a convention, its one of the first ones I remember learning that I disagreed with when I first started Rusting. I patched an open source library with it too (yep I was that guy). I'll go digging for you ... hold the phone, the docs for |
79f0bb0
to
8426386
Compare
Dropped the last patch (the |
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 8426386
This is the first 4 patches from #142, pushing up separately because that PR is quite complicated to review well and these cleanups are unrelated.