rust-bitcoin-unsafe-fast/src
Andrew Poelstra 9f0ff6f0a4
Merge rust-bitcoin/rust-bitcoin#1121: Use `u8::try_from`
517059e148 Use u8::try_from (Tobin C. Harding)

Pull request description:

  Currently we use a cast to get the `u8` depth, as suggested by the TODO in the code we can now use `TryFrom` since we bumped the MSRV.

  Use `u8::try_from.expect("")` since depth (node count) is guarded by `TAPROOT_CONTROL_MAX_NODE_COUNT`.

ACKs for top commit:
  Kixunil:
    ACK 517059e148
  apoelstra:
    ACK 517059e148

Tree-SHA512: 98e58617247a05025ec13ad3d00a464cb2351c98c6d871be43b252d3982e291b7187e25780e7fe367f5a3a64fa20f3b328876a8901af4da09e675f50727a26cf
2022-07-24 22:30:02 +00:00
..
blockdata Use pub(crate) for macros instead of macro_use 2022-07-20 11:25:54 +10:00
consensus Use pub(crate) for macros instead of macro_use 2022-07-20 11:25:54 +10:00
network Use listener.accept() 2022-07-22 13:29:05 +10:00
util Merge rust-bitcoin/rust-bitcoin#1121: Use `u8::try_from` 2022-07-24 22:30:02 +00:00
hash_types.rs Enable formatter for "src" 2022-07-19 13:43:12 +10:00
internal_macros.rs Use pub(crate) for macros instead of macro_use 2022-07-20 11:25:54 +10:00
lib.rs Use pub(crate) for macros instead of macro_use 2022-07-20 11:25:54 +10:00
policy.rs Enable formatter for "src" 2022-07-19 13:43:12 +10:00
serde_utils.rs Remove extern crate bitcoin_hashes 2022-07-20 11:23:59 +10:00
test_macros.rs Introduce SPDX license identifiers 2022-06-29 14:12:02 +10:00