Skip to content

Commit

Permalink
Fix comments and windows clippy complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jontified committed Jan 2, 2024
1 parent 82ad1ea commit df75d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions talpid-core/src/firewall/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl Firewall {
let relay_client_wstrs: Vec<_> = endpoint
.clients
.iter()
.map(|client| WideCString::from_os_str_truncate(client))
.map(WideCString::from_os_str_truncate)
.collect();
let relay_client_wstr_ptrs: Vec<*const u16> = relay_client_wstrs
.iter()
Expand Down Expand Up @@ -276,7 +276,7 @@ impl Firewall {
let relay_client_wstrs: Vec<_> = endpoint
.clients
.iter()
.map(|client| WideCString::from_os_str_truncate(client))
.map(WideCString::from_os_str_truncate)
.collect();
let relay_client_wstr_ptrs: Vec<*const u16> = relay_client_wstrs
.iter()
Expand Down
7 changes: 1 addition & 6 deletions talpid-openvpn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,6 @@ mod event_server {
};
use talpid_tunnel::TunnelMetadata;
use talpid_types::net::proxy::CustomProxy;
#[cfg(any(target_os = "linux", windows))]
use talpid_types::ErrorExt;
#[cfg(target_os = "macos")]
use talpid_types::ErrorExt;
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
use tonic::{
Expand Down Expand Up @@ -843,9 +840,7 @@ mod event_server {

let mut routes = HashSet::new();
#[cfg(not(target_os = "linux"))]
if let Some(talpid_types::net::proxy::CustomProxy::Socks5Local(proxy_settings)) =
&self.proxy
{
if let Some(CustomProxy::Socks5Local(proxy_settings)) = &self.proxy {
let network = proxy_settings.remote_endpoint.address.ip().into();
let node = talpid_routing::NetNode::DefaultNode;
let route = talpid_routing::RequiredRoute::new(network, node);
Expand Down

0 comments on commit df75d96

Please sign in to comment.