Skip to content

Commit ec69a30

Browse files
committed
ref: cargo clippy & fmt
1 parent fd81a55 commit ec69a30

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

adapter/rest/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ impl IdentifiableFlow for RequestRoute {
5656
impl ServerTrait<HttpServerConfig> for HttpServer {
5757
async fn init(&mut self, ctx: &ServerContext<HttpServerConfig>) -> anyhow::Result<()> {
5858
log::info!("Initializing http server");
59-
self.http_server = Some(Server::new(ctx.server_config.host.clone(), ctx.server_config.port));
59+
self.http_server = Some(Server::new(
60+
ctx.server_config.host.clone(),
61+
ctx.server_config.port,
62+
));
6063
Ok(())
6164
}
6265

crates/http/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Server {
7676
}
7777

7878
async fn run_server(&self, shutdown_rx: &mut tokio::sync::broadcast::Receiver<()>) {
79-
let url = format!("{}:{}",self.host, self.port);
79+
let url = format!("{}:{}", self.host, self.port);
8080
log::info!("Starting http server on {}", &url);
8181
let listener = match TcpListener::bind(&url) {
8282
Ok(listener) => {

0 commit comments

Comments
 (0)