mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
examples: remove redundant borrows in form example format args (#3781)
Co-authored-by: JustinCMR <[email protected]>
This commit is contained in:
@@ -68,10 +68,7 @@ struct Input {
|
||||
|
||||
async fn accept_form(Form(input): Form<Input>) -> Html<String> {
|
||||
dbg!(&input);
|
||||
Html(format!(
|
||||
"email='{}'\nname='{}'\n",
|
||||
&input.email, &input.name
|
||||
))
|
||||
Html(format!("email='{}'\nname='{}'\n", input.email, input.name))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user