fix missing argument
This commit is contained in:
parent
e8cac82b4f
commit
53936258a9
|
@ -45,16 +45,14 @@ async fn main() {
|
|||
.unwrap();
|
||||
}
|
||||
|
||||
async fn register_form(extract::Path(name): extract::Path<String>) -> impl IntoResponse {
|
||||
let template = HelloTemplate { name };
|
||||
async fn register_form() -> impl IntoResponse {
|
||||
let template = HelloTemplate {};
|
||||
HtmlTemplate(template)
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "hello.html")]
|
||||
struct HelloTemplate {
|
||||
name: String,
|
||||
}
|
||||
struct HelloTemplate {}
|
||||
|
||||
struct HtmlTemplate<T>(T);
|
||||
|
||||
|
|
Loading…
Reference in New Issue