mirror of
https://github.com/actix/examples
synced 2025-02-20 08:20:32 +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}")]
|
#[get("/{user}/{data}")]
|
||||||
async fn user(
|
async fn user(
|
||||||
hb: web::Data<Handlebars<'_>>,
|
hb: web::Data<Handlebars<'_>>,
|
||||||
info: web::Path<(String, String)>,
|
web::Path(info): web::Path<(String, String)>,
|
||||||
) -> HttpResponse {
|
) -> HttpResponse {
|
||||||
let data = json!({
|
let data = json!({
|
||||||
"user": info.0,
|
"user": info.0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user