diff options
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/tunnel.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mullvad-cli/src/cmds/tunnel.rs b/mullvad-cli/src/cmds/tunnel.rs index 24949b95e2..c1e1e174e1 100644 --- a/mullvad-cli/src/cmds/tunnel.rs +++ b/mullvad-cli/src/cmds/tunnel.rs @@ -134,7 +134,9 @@ impl Tunnel { ("generate", _) => Self::process_wireguard_key_generate(), ("automatic-rotation", Some(matches)) => match matches.subcommand() { ("get", _) => Self::process_wireguard_automatic_rotation_get(), - ("set", Some(matches)) => Self::process_wireguard_automatic_rotation_set(matches), + ("set", Some(matches)) => { + Self::process_wireguard_automatic_rotation_set(matches) + } ("unset", _) => Self::process_wireguard_automatic_rotation_unset(), _ => unreachable!("unhandled command"), }, @@ -217,7 +219,8 @@ impl Tunnel { } fn process_wireguard_automatic_rotation_set(matches: &clap::ArgMatches<'_>) -> Result<()> { - let rotate_interval = value_t!(matches.value_of("interval"), u32).unwrap_or_else(|e| e.exit()); + let rotate_interval = + value_t!(matches.value_of("interval"), u32).unwrap_or_else(|e| e.exit()); let mut rpc = new_rpc_client()?; rpc.set_wireguard_automatic_rotation(Some(rotate_interval))?; println!("Wireguard automatic key rotation has been updated"); |
