summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-12-04 22:44:41 +0100
committerLinus Färnstrand <linus@mullvad.net>2018-12-04 22:44:41 +0100
commit39678f83206d92905cb401643d7b78a06131c398 (patch)
tree1cf3310ae9fe4c38c39708b395960e096836be8a /mullvad-cli
parent91559382f141351f2294b093894df043d05a780d (diff)
parent28d6730ed845628b7283e29515bec63128c6d7d0 (diff)
downloadmullvadvpn-39678f83206d92905cb401643d7b78a06131c398.tar.xz
mullvadvpn-39678f83206d92905cb401643d7b78a06131c398.zip
Merge branch 'clippy-cleanup'
Diffstat (limited to 'mullvad-cli')
-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)