Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Sep 17, 2024
1 parent fb63582 commit ccbe2ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clash_lib/src/proxy/tuic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl Handler {
async fn get_conn(
&self,
resolver: &ThreadSafeDNSResolver,
sess: &Session,
#[allow(unused)] sess: &Session, // linux only
) -> Result<Arc<TuicConnection>> {
let endpoint = self
.ep
Expand Down Expand Up @@ -302,7 +302,7 @@ impl Handler {
sess: &Session,
resolver: ThreadSafeDNSResolver,
) -> Result<BoxedChainedDatagram> {
let conn = self.get_conn(&resolver, &sess).await?;
let conn = self.get_conn(&resolver, sess).await?;
let assos_id = self.next_assoc_id.fetch_add(1, Ordering::SeqCst);
let quic_udp = TuicDatagramOutbound::new(assos_id, conn, sess.source.into());
let s = ChainedDatagramWrapper::new(quic_udp);
Expand Down
5 changes: 4 additions & 1 deletion clash_lib/src/proxy/tun/routes/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ use windows::Win32::{
Networking::WinSock::{AF_INET, AF_INET6, PROTO_IP_RIP},
};

use crate::{common::errors::new_io_error, defer, proxy::utils::OutboundInterface};
use crate::{
common::errors::new_io_error, config::internal::config::TunConfig, defer,
proxy::utils::OutboundInterface,
};

const PROTO_TYPE_UCAST: u32 = 0;
const PROTO_VENDOR_ID: u32 = 0xFFFF;
Expand Down
2 changes: 1 addition & 1 deletion clash_lib/src/proxy/utils/platform/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use windows::Win32::{
},
};

use crate::{common::errors::new_io_error, proxy::Interface};
use crate::{common::errors::new_io_error, proxy::utils::Interface};

pub(crate) fn must_bind_socket_on_interface(
socket: &socket2::Socket,
Expand Down

0 comments on commit ccbe2ea

Please sign in to comment.