Suppress clippy

This commit is contained in:
Kitaiti Makoto 2022-01-06 20:43:40 +09:00
parent 4bc9cf3ad1
commit efaf1295e9

View File

@ -167,9 +167,11 @@ pub fn show(token: String, conn: DbConn, rockets: PlumeRocket) -> Result<Ructe,
} }
} }
let mut form = NewUserForm::default(); let form = NewUserForm {
form.email = signup.email; email: signup.email,
form.token = signup.token; token: signup.token,
..NewUserForm::default()
};
Ok(render!(email_signups::edit( Ok(render!(email_signups::edit(
&(&conn, &rockets).to_context(), &(&conn, &rockets).to_context(),
Instance::get_local()?.open_registrations, Instance::get_local()?.open_registrations,