1
0
mirror of https://github.com/actix/examples synced 2025-05-12 00:12: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"); log::info!("starting HTTP server at http://localhost:8080");
HttpServer::new(move || { HttpServer::new(move || {
App::new() App::new().service(web::resource("/something").route(web::get().to(do_something)))
.service(web::resource("/something").route(web::get().to(do_something)))
}) })
.bind(("127.0.0.1", 8080))? .bind(("127.0.0.1", 8080))?
.run() .run()