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:
parent
5ebb1ad951
commit
3fbe782be8
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user