From 07e4cf251cadb9618c140013491873549b6b2708 Mon Sep 17 00:00:00 2001 From: Chase Douglas Date: Sun, 13 Jul 2025 13:25:18 -0700 Subject: [PATCH] Panic on unreachable AWS SES code This is clearer to those reading code on expectations. --- src/mail.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mail.rs b/src/mail.rs index 93a46f25..3325164e 100644 --- a/src/mail.rs +++ b/src/mail.rs @@ -704,7 +704,7 @@ async fn send_with_selected_transport(email: Message) -> EmptyResult { } #[cfg(not(ses))] - err!("Failed to send email", "Failed to send email using AWS SES: `ses` feature is not enabled"); + unreachable!("Failed to send email using AWS SES: `ses` feature is not enabled"); } else { match smtp_transport().send(email).await { Ok(_) => Ok(()),