Cargo clippy
This commit is contained in:
parent
5d4db12bf6
commit
641bc1b992
@ -43,12 +43,12 @@ async fn main() -> std::io::Result<()> {
|
|||||||
let args: Args = Args::parse();
|
let args: Args = Args::parse();
|
||||||
let args = Arc::new(args);
|
let args = Arc::new(args);
|
||||||
|
|
||||||
if args.ports.len() == 0 {
|
if args.ports.is_empty() {
|
||||||
log::error!("No port to forward!");
|
log::error!("No port to forward!");
|
||||||
std::process::exit(2);
|
std::process::exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.tokens.len() == 0 {
|
if args.tokens.is_empty() {
|
||||||
log::error!("No tokens specified!");
|
log::error!("No tokens specified!");
|
||||||
std::process::exit(3);
|
std::process::exit(3);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user