Fix a clippy::collapsible_match lint (#2642)
We don't use the suggestion here, because it's actually wrong. See https://github.com/rust-lang/rust-clippy/issues/7575
This commit is contained in:
parent
c608260256
commit
6a84094b12
|
|
@ -44,21 +44,15 @@ fn v5_fake_transactions() -> Result<(), Report> {
|
||||||
check::coinbase_tx_no_prevout_joinsplit_spend(&transaction)?;
|
check::coinbase_tx_no_prevout_joinsplit_spend(&transaction)?;
|
||||||
|
|
||||||
// validate the sapling shielded data
|
// validate the sapling shielded data
|
||||||
match transaction {
|
if transaction.version() == 5 {
|
||||||
Transaction::V5 {
|
for spend in transaction.sapling_spends_per_anchor() {
|
||||||
sapling_shielded_data,
|
check::spend_cv_rk_not_small_order(&spend)?;
|
||||||
..
|
|
||||||
} => {
|
|
||||||
if let Some(s) = sapling_shielded_data {
|
|
||||||
for spend in s.spends_per_anchor() {
|
|
||||||
check::spend_cv_rk_not_small_order(&spend)?
|
|
||||||
}
|
|
||||||
for output in s.outputs() {
|
|
||||||
check::output_cv_epk_not_small_order(output)?;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_ => panic!("we should have no tx other than 5"),
|
for output in transaction.sapling_outputs() {
|
||||||
|
check::output_cv_epk_not_small_order(output)?;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
panic!("we should have no tx other than 5");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue