Fix clippy lints
This commit is contained in:
parent
5e0e44a388
commit
55e73d7910
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue