-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abc014a Move rustdoc above attribute (Tobin C. Harding) e923001 Implement std::error::Error::source for MerkleBlockError (Tobin C. Harding) 613f1cf Implement std::error::Error::source for bip152 (Tobin C. Harding) a37ab82 Add non_exhaustive to _all_ errors (Tobin C. Harding) Pull request description: Do error cleanups, and add a script to help find missing `non_exhaustive` on error types - Patch 1: Audit the codebase and put `non_exhaustive` on all error types. - Patch 2: Implement `std::error::Error::source` for `bip152::Error` - Patch 3: Implement `Display` and `std::error::Error::source` for `MerkleBlockError` - Patch 4: Move rustdocs to above attributes on one error type - ~Patch 5: Add a python script to `contrib` that checks the codebase for missing non exhaustive on the line above the results of regex `pub enum .*Error`~ I removed the Python script patch, I can't be bothered working on this for now but the clean ups and `non_exhaustive` additions are useful IMO. ### labels - I added 'API break', I think the `non_exhaustive` addition requires major bump but not sure? - release notes mention is just for the `non_exhaustive` patch. ACKs for top commit: Kixunil: ACK abc014a apoelstra: ACK abc014a Tree-SHA512: 16ea15014eae97de7ac9cca1e9b76304aa3702a98cde577c2d71343022f840d3b33a39d2ab6d3fba0f0f1ebaa1631a0595eea1d794ba9727fe6ccfcf08e2feae
- Loading branch information
Showing
4 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters