style(phantun): fix Clippy warnings

This commit is contained in:
Datong Sun 2023-09-18 09:16:32 -07:00
parent b58d58956b
commit 78dd7c13b1
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ async fn main() -> io::Result<()> {
.required(false) .required(false)
.help("Only use IPv4 address when connecting to remote") .help("Only use IPv4 address when connecting to remote")
.action(ArgAction::SetTrue) .action(ArgAction::SetTrue)
.conflicts_with_all(&["tun_local6", "tun_peer6"]), .conflicts_with_all(["tun_local6", "tun_peer6"]),
) )
.arg( .arg(
Arg::new("tun_local6") Arg::new("tun_local6")

View File

@ -71,7 +71,7 @@ async fn main() -> io::Result<()> {
.required(false) .required(false)
.help("Do not assign IPv6 addresses to Tun interface") .help("Do not assign IPv6 addresses to Tun interface")
.action(ArgAction::SetTrue) .action(ArgAction::SetTrue)
.conflicts_with_all(&["tun_local6", "tun_peer6"]), .conflicts_with_all(["tun_local6", "tun_peer6"]),
) )
.arg( .arg(
Arg::new("tun_local6") Arg::new("tun_local6")