fix missing argument

This commit is contained in:
Franz Dietrich
2023-06-15 10:13:51 +02:00
parent e8cac82b4f
commit 53936258a9
+3 -5
View File
@@ -45,16 +45,14 @@ async fn main() {
.unwrap(); .unwrap();
} }
async fn register_form(extract::Path(name): extract::Path<String>) -> impl IntoResponse { async fn register_form() -> impl IntoResponse {
let template = HelloTemplate { name }; let template = HelloTemplate {};
HtmlTemplate(template) HtmlTemplate(template)
} }
#[derive(Template)] #[derive(Template)]
#[template(path = "hello.html")] #[template(path = "hello.html")]
struct HelloTemplate { struct HelloTemplate {}
name: String,
}
struct HtmlTemplate<T>(T); struct HtmlTemplate<T>(T);