rust-bitcoin-unsafe-fast/internals/src
merge-script cfe6c0a999
Merge rust-bitcoin/rust-bitcoin#3293: priority: Re-write (and re-name) `read_uint_iter`
0f897f80a5 Re-write (and re-name) read_uint_iter (Tobin C. Harding)

Pull request description:

  The `UintError` type (returned by `read_uint_iter`) is not that useful because one variant is unreachable. Re-write the function by doing:n

  - Re-write the function to reduce the error cases returned.
  - Re-name it to `read_push_data_len`
  - Move it to `internals`
  - Use `PushDataLenLen` enum instead of an int parameter

ACKs for top commit:
  apoelstra:
    ACK 0f897f80a5 successfully ran local tests; lol so much better than the old code
  Kixunil:
    ACK 0f897f80a5

Tree-SHA512: 095017a32c2d5bb2268cb1a059d0022e122faf8b41295f14970e7968374dd1c35c3b95357aba5aabaa17843439aebc237000009015ea9b8bc58ab1b337e8e1bc
2024-09-09 16:37:30 +00:00
..
error Link to std::error::Error 2024-06-14 14:00:58 +10:00
array_vec.rs Add unit test for ArrayVec::extend_from_slice 2024-08-30 09:14:43 +10:00
const_tools.rs Refactor Rust version checking 2024-08-19 15:21:01 +02:00
error.rs Removed //! spare line at end of headers 2024-05-22 12:23:57 +01:00
lib.rs Re-write (and re-name) read_uint_iter 2024-09-09 06:31:39 +10:00
macros.rs 2024-09-08 automated rustfmt nightly 2024-09-08 01:17:12 +00:00
parse.rs Use full path in all macro usage of Result 2024-01-18 19:11:01 +01:00
script.rs Re-write (and re-name) read_uint_iter 2024-09-09 06:31:39 +10:00
serde.rs Change `T::from_str(s)` to `s.parse::<T>()` 2024-08-27 17:31:00 +01:00