From 5020456362390ea4c0b745cf30ae03cde11ff932 Mon Sep 17 00:00:00 2001 From: Igor Bubelov Date: Tue, 22 Oct 2024 17:28:42 +0700 Subject: [PATCH] Minor refactoring --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 28e9e78..43c70e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,7 +75,7 @@ async fn main() -> Result<()> { .wrap(from_fn(log::log)) .wrap(NormalizePath::trim()) .wrap(Compress::default()) - .app_data(Data::new(pool.clone())) + .app_data(Data::from(pool.clone())) .app_data(QueryConfig::default().error_handler(error::query_error_handler)) .service( service("rpc").guard(actix_web::guard::Post()).finish(