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 682dd0f commit fb63582
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion clash_lib/src/proxy/tun/inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ async fn handle_inbound_stream(
);
}),
so_mark: Some(so_mark),
..Default::default()
};

debug!("new tun TCP session assigned: {}", sess);
Expand Down
2 changes: 1 addition & 1 deletion clash_lib/src/proxy/tun/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub fn maybe_add_routes(cfg: &TunConfig, tun_name: &str) -> std::io::Result<()>
}
#[cfg(target_os = "linux")]
{
linux::setup_policy_routing(&cfg, &tun_iface)?;
linux::setup_policy_routing(cfg, &tun_iface)?;
}
} else {
for r in &cfg.routes {
Expand Down
2 changes: 1 addition & 1 deletion clash_lib/src/proxy/wg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl Handler {
send_pair.1,
resolver.clone(),
self.connector.lock().await.as_ref().cloned(),
&sess,
sess,
)
.await
.map_err(map_io_error)?;
Expand Down

0 comments on commit fb63582

Please sign in to comment.