examples: remove redundant borrows in form example format args (#3781)

Co-authored-by: JustinCMR <[email protected]>
This commit is contained in:
Justin
2026-05-27 09:09:38 +02:00
committed by GitHub
co-authored by JustinCMR
parent b99e25d01f
commit 4a72e063b9
+1 -4
View File
@@ -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)]