Skip to content

Commit

Permalink
FIx cargo clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dmidem committed Dec 24, 2024
1 parent 33ae89f commit 2be5625
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zebra-consensus/src/orchard_zsa/tests/block_description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,13 @@ fn format_tx_v6(
.as_ref()
.and_then(|shielded_data| format_burn(shielded_data.burn.as_ref()));

let issue = issue_data
.as_ref()
.and_then(|issue_data| format_issue(issue_data));
let issue = issue_data.as_ref().and_then(format_issue);

format!(
"V6 {{ {} }}",
[transfer, burn, issue]
.into_iter()
.filter_map(|part| part)
.flatten()
.collect::<Vec<String>>()
.join(", ")
)
Expand Down

0 comments on commit 2be5625

Please sign in to comment.