1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 08:14:58 +02:00

simplifies the front-page examples.

This commit is contained in:
Cameron Dershem
2019-06-19 14:24:31 -04:00
parent 2011f100a5
commit da969fed1f
4 changed files with 15 additions and 16 deletions

View File

@ -14,8 +14,8 @@ fn index() -> HttpResponse {
.body(include_str!("../static/form.html"))
}
fn register(params: web::Form<Register>) -> impl Responder {
format!("Hello {} from {}!", params.username, params.country)
fn register(form: web::Form<Register>) -> impl Responder {
format!("Hello {} from {}!", form.username, form.country)
}
fn main() {