mirror of
https://github.com/dndx/phantun.git
synced 2025-01-18 13:59:30 +08:00
style(phantun): fix Clippy warnings
This commit is contained in:
parent
b58d58956b
commit
78dd7c13b1
@ -71,7 +71,7 @@ async fn main() -> io::Result<()> {
|
||||
.required(false)
|
||||
.help("Only use IPv4 address when connecting to remote")
|
||||
.action(ArgAction::SetTrue)
|
||||
.conflicts_with_all(&["tun_local6", "tun_peer6"]),
|
||||
.conflicts_with_all(["tun_local6", "tun_peer6"]),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("tun_local6")
|
||||
|
@ -71,7 +71,7 @@ async fn main() -> io::Result<()> {
|
||||
.required(false)
|
||||
.help("Do not assign IPv6 addresses to Tun interface")
|
||||
.action(ArgAction::SetTrue)
|
||||
.conflicts_with_all(&["tun_local6", "tun_peer6"]),
|
||||
.conflicts_with_all(["tun_local6", "tun_peer6"]),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("tun_local6")
|
||||
|
Loading…
x
Reference in New Issue
Block a user