diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-12-28 16:16:00 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-12-28 16:16:00 +0100 |
| commit | 272ec721ff55579dceddfbf186578cab10b808cf (patch) | |
| tree | 47a7848b17de65f98f91e56a07dd6ed9642c2de1 /mullvad-cli/src | |
| parent | 40ef5effa822a2681117fdf105f091866a3351cb (diff) | |
| parent | 32c54f7ca1bdf77f2339cd86476f762c2ad61927 (diff) | |
| download | mullvadvpn-272ec721ff55579dceddfbf186578cab10b808cf.tar.xz mullvadvpn-272ec721ff55579dceddfbf186578cab10b808cf.zip | |
Merge branch 'upgrade-rustfmt'
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/lan.rs | 5 | ||||
| -rw-r--r-- | mullvad-cli/src/cmds/status.rs | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mullvad-cli/src/cmds/lan.rs b/mullvad-cli/src/cmds/lan.rs index 29ab264de2..0c0fc51d20 100644 --- a/mullvad-cli/src/cmds/lan.rs +++ b/mullvad-cli/src/cmds/lan.rs @@ -49,7 +49,10 @@ impl Lan { fn get(&self) -> Result<()> { let allow_lan: bool = rpc::call("get_allow_lan", &[] as &[u8; 0])?; - println!("Local network sharing setting: {}", if allow_lan { "allow" } else { "block" }); + println!( + "Local network sharing setting: {}", + if allow_lan { "allow" } else { "block" } + ); Ok(()) } } diff --git a/mullvad-cli/src/cmds/status.rs b/mullvad-cli/src/cmds/status.rs index 7690c6d8eb..db63978798 100644 --- a/mullvad-cli/src/cmds/status.rs +++ b/mullvad-cli/src/cmds/status.rs @@ -33,8 +33,7 @@ impl Command for Status { println!("Location: {}, {}", location.city, location.country); println!( "Position: {:.5}°N, {:.5}°W", - location.position[0], - location.position[1] + location.position[0], location.position[1] ); let ip: IpAddr = rpc::call("get_public_ip", &[] as &[u8; 0])?; |
