refactor: remove useless allocation

This commit is contained in:
Radical 2025-04-29 00:41:28 +02:00
parent c059da9d73
commit 30a169679d

View file

@ -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())
})