summaryrefslogtreecommitdiffhomepage
path: root/openvpn_ffi/src/lib.rs
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-04-18 15:22:24 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-04-18 15:22:24 +0200
commit1ff09656b1fe97008fa6efaee6078d35528fcc66 (patch)
tree235f3bbc78f511e93948534f1ec038a2de52807b /openvpn_ffi/src/lib.rs
parent7b054cf70ef6eaccc3886364fecf8814a541a00b (diff)
downloadmullvadvpn-1ff09656b1fe97008fa6efaee6078d35528fcc66.tar.xz
mullvadvpn-1ff09656b1fe97008fa6efaee6078d35528fcc66.zip
Reformat with new rustfmt settings
Diffstat (limited to 'openvpn_ffi/src/lib.rs')
-rw-r--r--openvpn_ffi/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn_ffi/src/lib.rs b/openvpn_ffi/src/lib.rs
index 702ea43315..00e0d58031 100644
--- a/openvpn_ffi/src/lib.rs
+++ b/openvpn_ffi/src/lib.rs
@@ -59,7 +59,7 @@ impl OpenVpnPluginEvent {
/// Tries to parse an integer from C into a variant of `OpenVpnPluginEvent`.
pub fn from_int(i: c_int) -> Result<OpenVpnPluginEvent> {
if i >= OpenVpnPluginEvent::Up as c_int && i <= OpenVpnPluginEvent::N as c_int {
- Ok(unsafe { ::std::mem::transmute_copy::<c_int, OpenVpnPluginEvent>(&i) })
+ Ok(unsafe { ::std::mem::transmute_copy::<c_int, OpenVpnPluginEvent>(&i) },)
} else {
bail!(ErrorKind::InvalidEnumVariant(i));
}