Fix clippy lints.
This commit is contained in:
parent
796161e9b4
commit
974669a50b
|
@ -594,7 +594,7 @@ pub mod testing {
|
|||
|
||||
fn tx_versions(branch_id: BranchId) -> impl Strategy<Value = TxVersion> {
|
||||
match branch_id {
|
||||
BranchId::Sprout => (1..=2u32).prop_map(|i| TxVersion::Sprout(i)).boxed(),
|
||||
BranchId::Sprout => (1..=2u32).prop_map(TxVersion::Sprout).boxed(),
|
||||
BranchId::Overwinter => Just(TxVersion::Overwinter).boxed(),
|
||||
#[cfg(feature = "zfuture")]
|
||||
BranchId::ZFuture => Just(TxVersion::ZFuture).boxed(),
|
||||
|
|
|
@ -72,7 +72,7 @@ fn tx_write_rejects_unexpected_binding_sig() {
|
|||
|
||||
proptest! {
|
||||
#[test]
|
||||
fn tx_serialization_roundtrip(tx in arb_branch_id().prop_flat_map(|branch_id| arb_tx(branch_id))) {
|
||||
fn tx_serialization_roundtrip(tx in arb_branch_id().prop_flat_map(arb_tx)) {
|
||||
let mut txn_bytes = vec![];
|
||||
tx.write(&mut txn_bytes).unwrap();
|
||||
|
||||
|
|
Loading…
Reference in New Issue