Cargo clippy

This commit is contained in:
Pierre HUBERT 2022-08-30 10:40:30 +02:00
parent 5d4db12bf6
commit 641bc1b992

View File

@ -43,12 +43,12 @@ async fn main() -> std::io::Result<()> {
let args: Args = Args::parse();
let args = Arc::new(args);
if args.ports.len() == 0 {
if args.ports.is_empty() {
log::error!("No port to forward!");
std::process::exit(2);
}
if args.tokens.len() == 0 {
if args.tokens.is_empty() {
log::error!("No tokens specified!");
std::process::exit(3);
}