clippy: fix warnings

This commit is contained in:
Valentin Tolmer
2021-05-14 09:28:15 +02:00
parent e0bcb58d36
commit e524fb0f55
3 changed files with 15 additions and 9 deletions

View File

@@ -211,7 +211,6 @@ pub fn build_tcp_server<Backend>(
where
Backend: BackendHandler + 'static,
{
let http_port = config.http_port.clone();
let jwt_secret = config.jwt_secret.clone();
server_builder
.bind("http", ("0.0.0.0", config.http_port), move || {
@@ -224,5 +223,10 @@ where
))
.tcp()
})
.with_context(|| format!("While bringing up the TCP server with port {}", http_port))
.with_context(|| {
format!(
"While bringing up the TCP server with port {}",
config.http_port
)
})
}