diff options
| -rw-r--r-- | talpid-core/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-openvpn-plugin/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-openvpn-plugin/src/lib.rs | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/talpid-core/Cargo.toml b/talpid-core/Cargo.toml index 6c015af21f..96c30924e2 100644 --- a/talpid-core/Cargo.toml +++ b/talpid-core/Cargo.toml @@ -13,7 +13,7 @@ lazy_static = "0.2" log = "0.3" mktemp = "0.3" -openvpn-plugin = { version = "0.1", features = ["serialize"] } +openvpn-plugin = { version = "0.2", features = ["serialize"] } talpid-ipc = { path = "../talpid-ipc" } [target.'cfg(unix)'.dependencies] diff --git a/talpid-openvpn-plugin/Cargo.toml b/talpid-openvpn-plugin/Cargo.toml index 023c886567..e0b4ddec77 100644 --- a/talpid-openvpn-plugin/Cargo.toml +++ b/talpid-openvpn-plugin/Cargo.toml @@ -12,5 +12,5 @@ error-chain = "0.10" log = "0.3" env_logger = "0.4" -openvpn-plugin = { version = "0.1", features = ["serialize", "log"] } +openvpn-plugin = { version = "0.2", features = ["serialize", "log"] } talpid-ipc = { path = "../talpid-ipc" } diff --git a/talpid-openvpn-plugin/src/lib.rs b/talpid-openvpn-plugin/src/lib.rs index 3d7efda8e0..5bb8bece64 100644 --- a/talpid-openvpn-plugin/src/lib.rs +++ b/talpid-openvpn-plugin/src/lib.rs @@ -8,7 +8,7 @@ extern crate env_logger; extern crate openvpn_plugin; extern crate talpid_ipc; -use openvpn_plugin::types::{OpenVpnPluginEvent, SuccessType}; +use openvpn_plugin::types::{EventResult, OpenVpnPluginEvent}; use std::collections::HashMap; use std::ffi::CString; @@ -81,12 +81,12 @@ fn openvpn_event(event: OpenVpnPluginEvent, _args: &[CString], env: &HashMap<CString, CString>, handle: &mut EventProcessor) - -> Result<SuccessType> { + -> Result<EventResult> { debug!("Received event: {:?}", event); let parsed_env = openvpn_plugin::ffi::parse::env_utf8(env) .chain_err(|| ErrorKind::ParseEnvFailed)?; handle.process_event(event, parsed_env).chain_err(|| ErrorKind::EventProcessingFailed)?; - Ok(SuccessType::Success) + Ok(EventResult::Success) } |
