diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,10 +82,10 @@ struct FormData { } async fn post_form(_req: &mut Parts, body: Body) -> Result<Response, Error> { - let msg: FormData = body.into_form().await?; + let FormData { text } = body.into_form().await?; Ok(Builder::new() .content_type(mime::TEXT_HTML) - .body(format!("hello <em>{}</em>", html_escape(msg.text)).into()) + .body(format!("hello <em>{}</em>", html_escape(text)).into()) .unwrap()) } |