mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
Fix Path derefs (#375)
This commit is contained in:
parent
323fc66f17
commit
412e9c7bcb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user