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:
parent
e2d5f99afb
commit
eb53d18e05
@ -59,7 +59,7 @@ async fn main() -> std::io::Result<()> {
|
||||
.route("/", web::get().to(greet))
|
||||
.route("/{name}", web::get().to(greet))
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
.bind(("127.0.0.1", 8080))?
|
||||
.run()
|
||||
.await
|
||||
}` "rust" "" }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user