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