fixed stabilised clippy issue

This commit is contained in:
Jędrzej Stuczyński
2024-09-27 18:10:59 +01:00
parent 784fae2204
commit 4ad52accc0
@@ -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 =