Skip to content

Commit

Permalink
Fixes a couple new clippy lints (#8950)
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 authored Oct 21, 2024
1 parent a182ffe commit 9073928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions zebra-chain/src/transaction/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,8 @@ impl ZcashSerialize for Transaction {
}

// Denoted as `bindingSigSapling` in the spec.
match sapling_shielded_data {
Some(sd) => writer.write_all(&<[u8; 64]>::from(sd.binding_sig)[..])?,
None => {}
if let Some(shielded_data) = sapling_shielded_data {
writer.write_all(&<[u8; 64]>::from(shielded_data.binding_sig)[..])?;
}
}

Expand Down
2 changes: 1 addition & 1 deletion zebra-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ struct SkipTestReturnedErrPanicMessages;
impl PanicMessage for SkipTestReturnedErrPanicMessages {
fn display(
&self,
pi: &std::panic::PanicInfo<'_>,
pi: &std::panic::PanicHookInfo<'_>,
f: &mut std::fmt::Formatter<'_>,
) -> std::fmt::Result {
let payload = pi
Expand Down

0 comments on commit 9073928

Please sign in to comment.