summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-11-16 14:32:55 +0100
committerLinus Färnstrand <linus@mullvad.net>2018-12-04 22:43:13 +0100
commit2544e7aca021eb062e34eec4d5e6fd4653719766 (patch)
treee5944d3346bcc2efdc849d6ac6518ee80cef0a01
parent91559382f141351f2294b093894df043d05a780d (diff)
downloadmullvadvpn-2544e7aca021eb062e34eec4d5e6fd4653719766.tar.xz
mullvadvpn-2544e7aca021eb062e34eec4d5e6fd4653719766.zip
Replace let Some(_) with just is_some()
-rw-r--r--mullvad-cli/src/cmds/tunnel.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/mullvad-cli/src/cmds/tunnel.rs b/mullvad-cli/src/cmds/tunnel.rs
index 55cb26ed54..7a45f5274f 100644
--- a/mullvad-cli/src/cmds/tunnel.rs
+++ b/mullvad-cli/src/cmds/tunnel.rs
@@ -139,9 +139,9 @@ impl Tunnel {
}
fn handle_openvpn_mssfix_cmd(matches: &clap::ArgMatches) -> Result<()> {
- if let Some(_) = matches.subcommand_matches("get") {
+ if matches.subcommand_matches("get").is_some() {
Self::process_openvpn_mssfix_get()
- } else if let Some(_) = matches.subcommand_matches("unset") {
+ } else if matches.subcommand_matches("unset").is_some() {
Self::process_openvpn_mssfix_unset()
} else if let Some(m) = matches.subcommand_matches("set") {
Self::process_openvpn_mssfix_set(m)
@@ -151,9 +151,9 @@ impl Tunnel {
}
fn handle_openvpn_proxy_cmd(matches: &clap::ArgMatches) -> Result<()> {
- if let Some(_) = matches.subcommand_matches("get") {
+ if matches.subcommand_matches("get").is_some() {
Self::process_openvpn_proxy_get()
- } else if let Some(_) = matches.subcommand_matches("unset") {
+ } else if matches.subcommand_matches("unset").is_some() {
Self::process_openvpn_proxy_unset()
} else if let Some(m) = matches.subcommand_matches("set") {
Self::process_openvpn_proxy_set(m)
@@ -163,7 +163,7 @@ impl Tunnel {
}
fn handle_ipv6_cmd(matches: &clap::ArgMatches) -> Result<()> {
- if let Some(_) = matches.subcommand_matches("get") {
+ if matches.subcommand_matches("get").is_some() {
Self::process_ipv6_get()
} else if let Some(m) = matches.subcommand_matches("set") {
Self::process_ipv6_set(m)