1
0
mirror of https://github.com/actix/examples synced 2025-05-11 07:52:57 +02:00

style: fix code formatting according to rustfmt

This commit is contained in:
yuriynex 2025-05-04 19:17:55 -07:00
parent 5ebb1ad951
commit 3fbe782be8

View File

@ -116,8 +116,7 @@ async fn main() -> std::io::Result<()> {
log::info!("starting HTTP server at http://localhost:8080");
HttpServer::new(move || {
App::new()
.service(web::resource("/something").route(web::get().to(do_something)))
App::new().service(web::resource("/something").route(web::get().to(do_something)))
})
.bind(("127.0.0.1", 8080))?
.run()