cleanup: remove unnecessary 'mut' and '.clone()'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-14 16:01:33 +01:00
parent 19f5aa252f
commit 0bfcea6a11
8 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ async fn run() -> Result<(), Error> {
}
fn accept_connections(
mut listener: tokio::net::TcpListener,
listener: tokio::net::TcpListener,
acceptor: Arc<openssl::ssl::SslAcceptor>,
debug: bool,
) -> tokio::sync::mpsc::Receiver<Result<std::pin::Pin<Box<tokio_openssl::SslStream<tokio::net::TcpStream>>>, Error>> {