From a55bfa355bd43171fc5a5601d24fef83ded2506c Mon Sep 17 00:00:00 2001 From: sksat Date: Wed, 30 Oct 2024 19:26:48 +0900 Subject: [PATCH] fix from clippy --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0314435..4a64a21 100644 --- a/src/main.rs +++ b/src/main.rs @@ -199,7 +199,7 @@ async fn main() -> std::io::Result<()> { .app_data(web::Data::new(Arc::new(cfg.clone()))) // memo: https://github.com/actix/actix-web/issues/1454#issuecomment-867897725 .app_data(web::Data::new(Arc::new(opt.clone()))) .service(web::resource("/webhook").route(web::post().to(webhook))) - .service(web::resource("/healthcheck").route(web::get().to(|| HttpResponse::Ok()))) + .service(web::resource("/healthcheck").route(web::get().to(HttpResponse::Ok))) }) .bind(format!("0.0.0.0:{}", port))? .run()