1
0
mirror of https://github.com/actix/actix-website synced 2025-01-22 16:15:56 +01:00

use tuple binding in hello world example

This commit is contained in:
Rob Ede 2020-12-26 19:17:37 +00:00 committed by GitHub
parent e2d5f99afb
commit eb53d18e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ async fn main() -> std::io::Result<()> {
.route("/", web::get().to(greet)) .route("/", web::get().to(greet))
.route("/{name}", web::get().to(greet)) .route("/{name}", web::get().to(greet))
}) })
.bind("127.0.0.1:8080")? .bind(("127.0.0.1", 8080))?
.run() .run()
.await .await
}` "rust" "" }} }` "rust" "" }}