From a2910d515b8f655c68eeaa352caa456a56da8b0c Mon Sep 17 00:00:00 2001 From: stormynoct Date: Sun, 14 Apr 2024 23:07:56 +0800 Subject: [PATCH] Resolve some clippy warnings --- crates/shadowsocks-service/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/shadowsocks-service/src/config.rs b/crates/shadowsocks-service/src/config.rs index 364be1c95eb4..e7149b59fa2f 100644 --- a/crates/shadowsocks-service/src/config.rs +++ b/crates/shadowsocks-service/src/config.rs @@ -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(), }; @@ -2876,7 +2876,7 @@ impl fmt::Display for Config { .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_bind_addr: inst.outbound_bind_addr, outbound_bind_interface: inst.outbound_bind_interface.clone(), }); }