From 011402fe8b24f11d94e7917ad01eac88d84cefa7 Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Mon, 18 Sep 2023 09:16:32 -0700 Subject: [PATCH] style(phantun): fix Clippy warnings --- phantun/src/bin/client.rs | 2 +- phantun/src/bin/server.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")