mirror of
https://github.com/dndx/phantun.git
synced 2025-01-19 06:19: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)
|
.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")
|
||||||
|
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user