mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
style: fix code formatting according to rustfmt
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user