Fixes a couple new clippy lints (#8950)
This commit is contained in:
parent
a182ffe098
commit
9073928bf0
|
@ -622,9 +622,8 @@ impl ZcashSerialize for Transaction {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Denoted as `bindingSigSapling` in the spec.
|
// Denoted as `bindingSigSapling` in the spec.
|
||||||
match sapling_shielded_data {
|
if let Some(shielded_data) = sapling_shielded_data {
|
||||||
Some(sd) => writer.write_all(&<[u8; 64]>::from(sd.binding_sig)[..])?,
|
writer.write_all(&<[u8; 64]>::from(shielded_data.binding_sig)[..])?;
|
||||||
None => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ struct SkipTestReturnedErrPanicMessages;
|
||||||
impl PanicMessage for SkipTestReturnedErrPanicMessages {
|
impl PanicMessage for SkipTestReturnedErrPanicMessages {
|
||||||
fn display(
|
fn display(
|
||||||
&self,
|
&self,
|
||||||
pi: &std::panic::PanicInfo<'_>,
|
pi: &std::panic::PanicHookInfo<'_>,
|
||||||
f: &mut std::fmt::Formatter<'_>,
|
f: &mut std::fmt::Formatter<'_>,
|
||||||
) -> std::fmt::Result {
|
) -> std::fmt::Result {
|
||||||
let payload = pi
|
let payload = pi
|
||||||
|
|
Loading…
Reference in New Issue