remove unwrap

email-verification
Felix Ableitner 2021-11-26 13:28:29 +01:00
parent c199215355
commit e43bc677b5
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ impl PerformCrud for Register {
send_verification_email( send_verification_email(
inserted_local_user.id, inserted_local_user.id,
// we check at the beginning of this method that email is set // we check at the beginning of this method that email is set
&inserted_local_user.email.unwrap(), &inserted_local_user.email.expect("email was provided"),
&inserted_person.name, &inserted_person.name,
context, context,
) )