1
0
mirror of https://github.com/actix/actix-website synced 2024-12-18 01:43:59 +01:00

use tuple for multiple extractors

This commit is contained in:
Nikolay Kim 2018-06-02 08:31:38 -07:00
parent 259a2ac6f1
commit 790afd3fb7

View File

@ -22,7 +22,7 @@ function.
```rust ```rust
// Option 1: passed as a parameter to a handler function // Option 1: passed as a parameter to a handler function
fn index(params: Path<(String, String,)>, info: Json<MyInfo>) -> HttpResponse { fn index((params, info): (Path<(String, String,)>, Json<MyInfo>)) -> HttpResponse {
... ...
} }