Skip to content

Commit 5773064

Browse files
fix clippy lint
1 parent fc2da00 commit 5773064

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

crates/ripasso-cursive/src/main.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,18 +2266,11 @@ fn check_args() {
22662266

22672267
match args.len() {
22682268
1 => (),
2269-
2 => {
2270-
if args[1] == "-h" || args[1] == "--help" {
2269+
2
2270+
if (args[1] == "-h" || args[1] == "--help") => {
22712271
help();
22722272
process::exit(0);
2273-
} else {
2274-
eprintln!(
2275-
"{}",
2276-
CATALOG.gettext("Unknown argument, usage: ripasso-cursive [-h|--help]")
2277-
);
2278-
process::exit(1);
22792273
}
2280-
}
22812274
_ => {
22822275
eprintln!(
22832276
"{}",

0 commit comments

Comments
 (0)