summaryrefslogtreecommitdiffhomepage
path: root/talpid-openvpn-plugin/src
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-12-04 11:12:49 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-12-04 12:19:36 +0100
commit6f3ea40d003400a4b5802f12e119805c7f9b3fb7 (patch)
tree7cdd9f74729e1aa473ce0ecae121784073a293f1 /talpid-openvpn-plugin/src
parent26d9f85b9c779ca18f935df9006ca6fad037aeb7 (diff)
downloadmullvadvpn-6f3ea40d003400a4b5802f12e119805c7f9b3fb7.tar.xz
mullvadvpn-6f3ea40d003400a4b5802f12e119805c7f9b3fb7.zip
Upgrade rustfmt to 0.2.17
Diffstat (limited to 'talpid-openvpn-plugin/src')
-rw-r--r--talpid-openvpn-plugin/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/talpid-openvpn-plugin/src/lib.rs b/talpid-openvpn-plugin/src/lib.rs
index 4449814e31..f08aa4a9a5 100644
--- a/talpid-openvpn-plugin/src/lib.rs
+++ b/talpid-openvpn-plugin/src/lib.rs
@@ -76,9 +76,9 @@ fn parse_args(args: &[CString]) -> Result<talpid_ipc::IpcServerId> {
.chain_err(|| ErrorKind::ParseArgsFailed)?
.into_iter();
let _plugin_path = args_iter.next();
- let core_server_id: talpid_ipc::IpcServerId = args_iter.next().ok_or_else(|| {
- ErrorKind::Msg("No core server id given as first argument".to_owned())
- })?;
+ let core_server_id: talpid_ipc::IpcServerId = args_iter
+ .next()
+ .ok_or_else(|| ErrorKind::Msg("No core server id given as first argument".to_owned()))?;
Ok(core_server_id)
}