rust-bitcoin-unsafe-fast/bitcoin
Andrew Poelstra 8aab550e97
Merge rust-bitcoin/rust-bitcoin#2322: Remove Push enum
a8d50a5541 Remove Push enum (Tobin C. Harding)

Pull request description:

  The `Push` enum is only ever used to get access to one of its variants. Since it is a private type we can remove it entirely and just return `PushBytes` from the `last_pushdata` function.

  Needs careful review but I believe the function name is still correctly descriptive.

  This was discovered by of a new nightly clippy warning.

ACKs for top commit:
  apoelstra:
    ACK a8d50a5541 Looks good to me. The latest compiler complains about the currently-unused variants.
  sanket1729:
    ACK a8d50a5541.

Tree-SHA512: 7f96057b0f6f5673252578253ad4f1789793dbf6e917d3974274dedf942da27e6247946262a0669eb500d47987788fcca0e020ed16c0d672188e95ee31163242
2024-01-08 20:29:02 +00:00
..
contrib bitcoin: Add DO_FEATURE_MATRIX 2023-12-06 10:09:05 +11:00
embedded Implement `CompressedPublicKey` 2023-12-12 15:16:16 +01:00
examples 2023-12-17 automated rustfmt nightly 2023-12-17 00:59:05 +00:00
src Merge rust-bitcoin/rust-bitcoin#2322: Remove Push enum 2024-01-08 20:29:02 +00:00
tests Use NetworkKind in bip32 module 2023-12-15 11:50:50 +11:00
CHANGELOG.md Remove no-std feature 2023-12-06 09:54:33 +11:00
Cargo.toml Add bitcoin-units crate 2023-12-11 08:52:31 +11:00
build.rs Bump MSRV to Rust version 1.56.1 2023-11-23 06:20:02 +11:00