mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 22:42:35 -04:00
Use or-pattern stabilized in Rust 1.53 where possible
This commit is contained in:
parent
ac0b0150e6
commit
3aa028e3bf
2 changed files with 3 additions and 10 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue