mirror of
https://github.com/fafhrd91/actix-web
synced 2025-09-02 01:31:57 +02:00
rename .to_async() to .to()
This commit is contained in:
@@ -29,7 +29,7 @@ Actix web is a simple, pragmatic and extremely fast web framework for Rust.
|
||||
```rust
|
||||
use actix_web::{web, App, HttpServer, Responder};
|
||||
|
||||
fn index(info: web::Path<(u32, String)>) -> impl Responder {
|
||||
async fn index(info: web::Path<(u32, String)>) -> impl Responder {
|
||||
format!("Hello {}! id:{}", info.1, info.0)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user