Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 21, 2024
1 parent a7ba460 commit 3b20f95
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rust/agama-server/src/agama-web-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ async fn start_server(address: String, service: Router, ssl_acceptor: SslAccepto
let listener = tokio::net::TcpListener::bind(&address)
.await
.unwrap_or_else(|error| {
let msg = format!("Error: could not listen on {}: {}", &address, error);
tracing::error!(msg);
panic!("{}", msg)
}
);
let msg = format!("Error: could not listen on {}: {}", &address, error);
tracing::error!(msg);
panic!("{}", msg)
});

pin_mut!(listener);

Expand Down

0 comments on commit 3b20f95

Please sign in to comment.