diff options
| -rw-r--r-- | talpid-core/src/tunnel/mod.rs | 2 | ||||
| -rw-r--r-- | talpid-openvpn/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/talpid-core/src/tunnel/mod.rs b/talpid-core/src/tunnel/mod.rs index a617a9260d..70d496b031 100644 --- a/talpid-core/src/tunnel/mod.rs +++ b/talpid-core/src/tunnel/mod.rs @@ -270,7 +270,7 @@ impl TunnelMonitor { /// Consumes the monitor and blocks until the tunnel exits or there is an error. pub fn wait(self) -> Result<()> { - self.monitor.wait().map_err(Error::from) + self.monitor.wait() } } diff --git a/talpid-openvpn/src/lib.rs b/talpid-openvpn/src/lib.rs index c3474f8e9d..d01290e6f3 100644 --- a/talpid-openvpn/src/lib.rs +++ b/talpid-openvpn/src/lib.rs @@ -621,7 +621,7 @@ impl<C: OpenVpnBuilder + Send + 'static> OpenVpnMonitor<C> { .ca(resource_dir.join("ca.crt")); #[cfg(windows)] cmd.tunnel_alias(Some(alias)); - if let Some(proxy_settings) = params.proxy.clone().take() { + if let Some(proxy_settings) = params.proxy.clone() { cmd.proxy_settings(proxy_settings); } if let Some(proxy_auth_file) = proxy_auth_file { |
