Skip to content

Commit

Permalink
Resolve some clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stormynoct committed Apr 14, 2024
1 parent c475cc3 commit 222f9d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ impl Config {
acl: None,
#[cfg(any(target_os = "linux", target_os = "android"))]
outbound_fwmark: config.outbound_fwmark,
outbound_bind_addr: outbound_bind_addr,
outbound_bind_addr,
outbound_bind_interface: config.outbound_bind_interface.clone(),
};

Expand Down Expand Up @@ -2070,7 +2070,7 @@ impl Config {
acl: None,
#[cfg(any(target_os = "linux", target_os = "android"))]
outbound_fwmark: config.outbound_fwmark,
outbound_bind_addr: outbound_bind_addr,
outbound_bind_addr,
outbound_bind_interface: config.outbound_bind_interface.clone(),
};

Expand Down Expand Up @@ -2875,8 +2875,8 @@ impl fmt::Display for Config {
.as_ref()
.and_then(|a| a.file_path().to_str().map(ToOwned::to_owned)),
#[cfg(any(target_os = "linux", target_os = "android"))]
outbound_fwmark: inst.outbound_fwmark.clone(),
outbound_bind_addr: inst.outbound_bind_addr.clone(),
outbound_fwmark: inst.outbound_fwmark,
outbound_bind_addr: inst.outbound_bind_addr,
outbound_bind_interface: inst.outbound_bind_interface.clone(),
});
}
Expand Down

0 comments on commit 222f9d9

Please sign in to comment.