Fix clippy lints.

This commit is contained in:
Kris Nuttycombe 2021-02-04 11:41:01 -07:00
parent 796161e9b4
commit 974669a50b
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -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();