diff --git a/template_handlebars/src/main.rs b/template_handlebars/src/main.rs index 3fddb492..afd24c35 100644 --- a/template_handlebars/src/main.rs +++ b/template_handlebars/src/main.rs @@ -28,7 +28,7 @@ async fn index(hb: web::Data>) -> HttpResponse { #[get("/{user}/{data}")] async fn user( hb: web::Data>, - info: web::Path<(String, String)>, + web::Path(info): web::Path<(String, String)>, ) -> HttpResponse { let data = json!({ "user": info.0,