diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-12-04 22:44:41 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-12-04 22:44:41 +0100 |
| commit | 39678f83206d92905cb401643d7b78a06131c398 (patch) | |
| tree | 1cf3310ae9fe4c38c39708b395960e096836be8a /mullvad-cli/src | |
| parent | 91559382f141351f2294b093894df043d05a780d (diff) | |
| parent | 28d6730ed845628b7283e29515bec63128c6d7d0 (diff) | |
| download | mullvadvpn-39678f83206d92905cb401643d7b78a06131c398.tar.xz mullvadvpn-39678f83206d92905cb401643d7b78a06131c398.zip | |
Merge branch 'clippy-cleanup'
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/tunnel.rs | 10 |
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) |
