mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(clippy): enable if_then_some_else_none lint (#11679)
Signed-off-by: jsvisa <delweng@gmail.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -267,11 +267,7 @@ mod tests {
|
||||
let mut receipt = random_receipt(&mut rng, transaction, Some(1));
|
||||
receipt.logs.push(random_log(
|
||||
&mut rng,
|
||||
if txi == (block.body.transactions.len() - 1) {
|
||||
Some(deposit_contract_addr)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
(txi == (block.body.transactions.len() - 1)).then_some(deposit_contract_addr),
|
||||
Some(1),
|
||||
));
|
||||
receipts.push((receipts.len() as u64, receipt));
|
||||
|
||||
Reference in New Issue
Block a user