fixed stabilised clippy issue
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user