aboutsummaryrefslogtreecommitdiff
path: root/src/mail.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail.rs')
-rw-r--r--src/mail.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mail.rs b/src/mail.rs
index 5ce4a079..1a32ae25 100644
--- a/src/mail.rs
+++ b/src/mail.rs
@@ -286,9 +286,8 @@ pub async fn send_invite(
}
}
- let query_string = match query.query() {
- None => err!("Failed to build invite URL query parameters"),
- Some(query) => query,
+ let Some(query_string) = query.query() else {
+ err!("Failed to build invite URL query parameters")
};
let (subject, body_html, body_text) = get_text(
@@ -330,9 +329,8 @@ pub async fn send_emergency_access_invite(
.append_pair("token", &encode_jwt(&claims));
}
- let query_string = match query.query() {
- None => err!("Failed to build emergency invite URL query parameters"),
- Some(query) => query,
+ let Some(query_string) = query.query() else {
+ err!("Failed to build emergency invite URL query parameters")
};
let (subject, body_html, body_text) = get_text(