Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Sep 16, 2024
1 parent f9f6354 commit 40c80dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clash_lib/src/proxy/tun/routes/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn add_route(via: &OutboundInterface, dest: &IpNet) -> std::io::Result<()> {
let cmd = std::process::Command::new("route")
.arg("add")
.arg("-net")
.arg(&dest.to_string())
.arg(dest.to_string())
.arg("-interface")
.arg(&via.name)
.output()?;
Expand Down Expand Up @@ -65,7 +65,7 @@ pub fn maybe_add_default_route() -> std::io::Result<()> {
.arg("-ifscope")
.arg(&default_interface.name)
.arg("0/0")
.arg(&gateway.to_string())
.arg(gateway.to_string())
.output()?;

warn!(
Expand Down Expand Up @@ -96,7 +96,7 @@ pub fn maybe_routes_clean_up() -> std::io::Result<()> {
.arg("-ifscope")
.arg(&default_interface.name)
.arg("0/0")
.arg(&gateway.to_string())
.arg(gateway.to_string())
.output()?;

warn!(
Expand Down

0 comments on commit 40c80dc

Please sign in to comment.