From a95d64fc3f2e9be49638a6ef1f44db062f96d80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kj=C3=A4ll?= Date: Sat, 7 Mar 2026 12:45:47 +0100 Subject: [PATCH] fix clippy lint --- crates/ripasso-cursive/src/main.rs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/crates/ripasso-cursive/src/main.rs b/crates/ripasso-cursive/src/main.rs index e8fc2ab..3ea5106 100644 --- a/crates/ripasso-cursive/src/main.rs +++ b/crates/ripasso-cursive/src/main.rs @@ -2266,17 +2266,9 @@ fn check_args() { match args.len() { 1 => (), - 2 => { - if args[1] == "-h" || args[1] == "--help" { - help(); - process::exit(0); - } else { - eprintln!( - "{}", - CATALOG.gettext("Unknown argument, usage: ripasso-cursive [-h|--help]") - ); - process::exit(1); - } + 2 if (args[1] == "-h" || args[1] == "--help") => { + help(); + process::exit(0); } _ => { eprintln!(