From e769f3a3944c398a11daebcfb6428893c7449f6d Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Fri, 9 Aug 2024 15:12:55 +0800 Subject: [PATCH] clippy: manual_unwrap_or (#2489) --- rpc-client/src/mock_sender.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rpc-client/src/mock_sender.rs b/rpc-client/src/mock_sender.rs index 9730a6ff24a983..6654804cc32c25 100644 --- a/rpc-client/src/mock_sender.rs +++ b/rpc-client/src/mock_sender.rs @@ -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) }, }, },