refactor: remove useless allocation
This commit is contained in:
parent
c059da9d73
commit
30a169679d
1 changed files with 1 additions and 3 deletions
|
@ -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())
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue