From 4ad52accc0061dc36effe563a38d255f7b25f7a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Fri, 27 Sep 2024 18:10:59 +0100 Subject: [PATCH] fixed stabilised clippy issue --- nym-validator-rewarder/src/cli/process_until.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nym-validator-rewarder/src/cli/process_until.rs b/nym-validator-rewarder/src/cli/process_until.rs index 47756447ea..f1c15470d0 100644 --- a/nym-validator-rewarder/src/cli/process_until.rs +++ b/nym-validator-rewarder/src/cli/process_until.rs @@ -27,14 +27,11 @@ pub struct Args { } pub(crate) async fn execute(args: Args) -> Result<(), NymRewarderError> { - match (args.start_height, args.stop_height) { - (Some(start), Some(end)) => { - if start > end { - eprintln!("the start height can't be larger than the stop height!"); - return Ok(()); - } + if let (Some(start), Some(end)) = (args.start_height, args.stop_height) { + if start > end { + eprintln!("the start height can't be larger than the stop height!"); + return Ok(()); } - _ => (), } let config =