Fix clippy lints

This commit is contained in:
Jack Grigg 2021-03-26 09:29:24 +13:00
parent 5e0e44a388
commit 55e73d7910
2 changed files with 4 additions and 13 deletions

View File

@ -687,7 +687,7 @@ mod tests {
let (cb, _) = fake_compact_block(
sapling_activation_height(),
BlockHash([0; 32]),
extfvk.clone(),
extfvk,
value,
);
insert_into_cache(&db_cache, &cb);

View File

@ -64,25 +64,16 @@ macro_rules! update_hash {
}
fn has_overwinter_components(version: &TxVersion) -> bool {
match version {
TxVersion::Sprout(_) => false,
_ => true,
}
!matches!(version, TxVersion::Sprout(_))
}
fn has_sapling_components(version: &TxVersion) -> bool {
match version {
TxVersion::Sprout(_) | TxVersion::Overwinter => false,
_ => true,
}
!matches!(version, TxVersion::Sprout(_) | TxVersion::Overwinter)
}
#[cfg(feature = "zfuture")]
fn has_tze_components(version: &TxVersion) -> bool {
match version {
TxVersion::ZFuture => true,
_ => false,
}
matches!(version, TxVersion::ZFuture)
}
fn prevout_hash(vin: &[TxIn]) -> Blake2bHash {