From 30a169679da5b7be8354d90f1e13c3e2a836a4a4 Mon Sep 17 00:00:00 2001 From: Radical Date: Tue, 29 Apr 2025 00:41:28 +0200 Subject: [PATCH] refactor: remove useless allocation --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 414f320..8d1408f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,10 +24,8 @@ async fn main() -> Result<(), Error> { }; HttpServer::new(move || { - let data = data.clone(); - App::new() - .app_data(web::Data::new(data)) + .app_data(web::Data::new(data.clone())) .service(api::versions::res) .service(api::v1::web()) })