Commit 1f7c0b6
committed
fix(rpc/test): clippy map_or_else + redundant closure on merkle_root construction
The smoke fixture in commit 6f93ded uses bitcoin::merkle_tree::calculate_root
to derive the merkle root from a single-tx block. The map(...).unwrap_or_else()
chain triggered clippy::map_unwrap_or, and the closure was a redundant wrapper
for TxMerkleNode::from_raw_hash.
Replace with map_or_else passing the two associated functions directly.
Op: correct
Restores: rule:clippy_workspace_clean1 parent 6f93ded commit 1f7c0b6
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
355 | 357 | | |
356 | 358 | | |
357 | 359 | | |
| |||
0 commit comments