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();
form.email = signup.email;
form.token = signup.token;
let form = NewUserForm {
email: signup.email,
token: signup.token,
..NewUserForm::default()
};
Ok(render!(email_signups::edit(
&(&conn, &rockets).to_context(),
Instance::get_local()?.open_registrations,