Cargo clippy

This commit is contained in:
Pierre HUBERT 2022-08-30 11:22:04 +02:00
parent c67d53a4df
commit 4cf5100c30

View File

@ -1,5 +1,3 @@
use std::future::Future;
use std::time::Duration;
use tokio::net::TcpListener;
@ -8,7 +6,7 @@ pub async fn relay_client(token: String, port_id: usize, server: String, listen_
let listener = match TcpListener::bind(&listen_address).await {
Ok(l) => l,
Err(e) => {
log::error!("Failed to start to listen on {}!", listen_address);
log::error!("Failed to start to listen on {}! {}", listen_address, e);
std::process::exit(3);
}
};