From e43bc677b51ba7385c9d567da720910cf66805c6 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 26 Nov 2021 13:28:29 +0100 Subject: [PATCH] remove unwrap --- crates/api_crud/src/user/create.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/api_crud/src/user/create.rs b/crates/api_crud/src/user/create.rs index 8fec810a8..77d81087d 100644 --- a/crates/api_crud/src/user/create.rs +++ b/crates/api_crud/src/user/create.rs @@ -230,7 +230,7 @@ impl PerformCrud for Register { send_verification_email( inserted_local_user.id, // 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, context, )