1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

Fix Path derefs (#375)

This commit is contained in:
sjmdsky 2020-10-04 23:51:42 +08:00 committed by GitHub
parent 323fc66f17
commit 412e9c7bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ async fn index(hb: web::Data<Handlebars<'_>>) -> HttpResponse {
#[get("/{user}/{data}")]
async fn user(
hb: web::Data<Handlebars<'_>>,
info: web::Path<(String, String)>,
web::Path(info): web::Path<(String, String)>,
) -> HttpResponse {
let data = json!({
"user": info.0,