Use or-pattern stabilized in Rust 1.53 where possible

This commit is contained in:
Thomas Eizinger 2021-06-21 11:57:21 +10:00
parent ac0b0150e6
commit 3aa028e3bf
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
2 changed files with 3 additions and 10 deletions

View file

@ -55,12 +55,7 @@ where
Ok(matches) => RawArguments::from_clap(&matches),
Err(clap::Error {
message,
kind: clap::ErrorKind::HelpDisplayed,
..
})
| Err(clap::Error {
message,
kind: clap::ErrorKind::VersionDisplayed,
kind: clap::ErrorKind::HelpDisplayed | clap::ErrorKind::VersionDisplayed,
..
}) => return Ok(ParseResult::PrintAndExitZero { message }),
Err(e) => anyhow::bail!(e),