rust-bitcoin-unsafe-fast/src
Andrew Poelstra 50489c8d5e
Merge rust-bitcoin/rust-bitcoin#1026: Add non_exhaustive to all error enums
99f565f932 Add non_exhaustive to all error enums (Tobin C. Harding)

Pull request description:

  Adding an error variant to a public enum is an API breaking change, this means making, what could be, small refactorings or improvements harder. If we use `non_exhaustive` for error types then we mitigate this cost.

  There is a tradeoff however, downstream users who explicitly match on our public error types must include a wildcard pattern.

ACKs for top commit:
  apoelstra:
    ACK 99f565f932
  Kixunil:
    ACK 99f565f932

Tree-SHA512: ff329f87d52b3fbe24654f32e4062ddae73173cba5a13d511591158e68ee278e9bdc0a70a3e0b42d6606b369255923f9c46d8b3d1b2ff75f8461a82567df80cd
2022-06-01 16:22:44 +00:00
..
blockdata Merge rust-bitcoin/rust-bitcoin#1026: Add non_exhaustive to all error enums 2022-06-01 16:22:44 +00:00
consensus Merge rust-bitcoin/rust-bitcoin#1026: Add non_exhaustive to all error enums 2022-06-01 16:22:44 +00:00
network Merge rust-bitcoin/rust-bitcoin#1026: Add non_exhaustive to all error enums 2022-06-01 16:22:44 +00:00
util Merge rust-bitcoin/rust-bitcoin#1026: Add non_exhaustive to all error enums 2022-06-01 16:22:44 +00:00
hash_types.rs Enable edition 2018 2022-05-11 10:16:48 +10:00
internal_macros.rs Add `consensus_decode_from_finite_reader` optimization 2022-05-30 21:15:34 -07:00
lib.rs Enable edition 2018 2022-05-11 10:16:48 +10:00
policy.rs Flatten the policy module 2022-03-09 10:20:18 +11:00
serde_utils.rs Enable edition 2018 2022-05-11 10:16:48 +10:00
test_macros.rs Refactor whitespace 2022-03-14 13:51:50 +11:00