diff --git a/phantun/src/bin/client.rs b/phantun/src/bin/client.rs index 57a73fe..c31ead6 100644 --- a/phantun/src/bin/client.rs +++ b/phantun/src/bin/client.rs @@ -1,4 +1,4 @@ -use clap::{crate_version, App, Arg}; +use clap::{crate_version, Arg, Command}; use fake_tcp::packet::MAX_PACKET_LEN; use fake_tcp::{Socket, Stack}; use log::{debug, error, info}; @@ -38,7 +38,7 @@ fn new_udp_reuseport(addr: SocketAddr) -> UdpSocket { async fn main() { pretty_env_logger::init(); - let matches = App::new("Phantun Client") + let matches = Command::new("Phantun Client") .version(crate_version!()) .author("Datong Sun (github.com/dndx)") .arg( diff --git a/phantun/src/bin/server.rs b/phantun/src/bin/server.rs index 431720e..6ab68a9 100644 --- a/phantun/src/bin/server.rs +++ b/phantun/src/bin/server.rs @@ -1,4 +1,4 @@ -use clap::{crate_version, App, Arg}; +use clap::{crate_version, Arg, Command}; use fake_tcp::packet::MAX_PACKET_LEN; use fake_tcp::Stack; use log::{error, info}; @@ -12,7 +12,7 @@ const UDP_TTL: Duration = Duration::from_secs(180); async fn main() { pretty_env_logger::init(); - let matches = App::new("Phantun Server") + let matches = Command::new("Phantun Server") .version(crate_version!()) .author("Datong Sun (github.com/dndx)") .arg(