diff --git a/phantun/src/bin/client.rs b/phantun/src/bin/client.rs index 360101e..f19a28f 100644 --- a/phantun/src/bin/client.rs +++ b/phantun/src/bin/client.rs @@ -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") diff --git a/phantun/src/bin/server.rs b/phantun/src/bin/server.rs index c5dfeea..58a373a 100644 --- a/phantun/src/bin/server.rs +++ b/phantun/src/bin/server.rs @@ -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")