From 193d15e4c6378d8e545973f3eba816aa307659de Mon Sep 17 00:00:00 2001 From: ravenclaw900 <50060110+ravenclaw900@users.noreply.github.com> Date: Tue, 25 Jul 2023 17:19:53 -0500 Subject: [PATCH] style(backend): fix formatting --- src/main.rs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index d9a882ac..aa801724 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,9 +60,14 @@ async fn main() -> anyhow::Result<()> { &CONFIG.cert, &CONFIG.key, flexible_hyper_server_tls::tlsconfig::HttpProtocol::Http1, - ).context("Couldn't get TLS config")?; + ) + .context("Couldn't get TLS config")?; - flexible_hyper_server_tls::HyperHttpOrHttpsAcceptor::new_https(tcp, tls_acceptor, std::time::Duration::from_secs(10)) + flexible_hyper_server_tls::HyperHttpOrHttpsAcceptor::new_https( + tcp, + tls_acceptor, + std::time::Duration::from_secs(10), + ) } else { flexible_hyper_server_tls::HyperHttpOrHttpsAcceptor::new_http(tcp) }; @@ -71,12 +76,9 @@ async fn main() -> anyhow::Result<()> { // Ignore result, because it will never be an error loop { - let _res = (&mut server) - .await - .context("Server error") - .or_else(|e| { - tracing::warn!("{:?}", e); - anyhow::Ok(()) - }); + let _res = (&mut server).await.context("Server error").or_else(|e| { + tracing::warn!("{:?}", e); + anyhow::Ok(()) + }); } }