Skip to content

Commit

Permalink
clippy: manual_unwrap_or (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau authored Aug 9, 2024
1 parent c20b1d6 commit e769f3a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rpc-client/src/mock_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,7 @@ impl RpcSender for MockSender {
range: RpcBlockProductionRange {
first_slot: config_range.first_slot,
last_slot: {
if let Some(last_slot) = config_range.last_slot {
last_slot
} else {
2
}
config_range.last_slot.unwrap_or(2)
},
},
},
Expand Down

0 comments on commit e769f3a

Please sign in to comment.