Skip to content

Commit a95d64f

Browse files
fix clippy lint
1 parent fc2da00 commit a95d64f

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

crates/ripasso-cursive/src/main.rs

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

22672267
match args.len() {
22682268
1 => (),
2269-
2 => {
2270-
if args[1] == "-h" || args[1] == "--help" {
2271-
help();
2272-
process::exit(0);
2273-
} else {
2274-
eprintln!(
2275-
"{}",
2276-
CATALOG.gettext("Unknown argument, usage: ripasso-cursive [-h|--help]")
2277-
);
2278-
process::exit(1);
2279-
}
2269+
2 if (args[1] == "-h" || args[1] == "--help") => {
2270+
help();
2271+
process::exit(0);
22802272
}
22812273
_ => {
22822274
eprintln!(

0 commit comments

Comments
 (0)