From 2747c1b8fa9e44e15b8d5e8797b5cba9d68df8af Mon Sep 17 00:00:00 2001 From: wshino Date: Wed, 23 Oct 2024 14:28:21 +0700 Subject: [PATCH] Apply cargo fmt --- packages/relayer/src/core.rs | 5 ++++- packages/relayer/src/lib.rs | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/relayer/src/core.rs b/packages/relayer/src/core.rs index b5fd28d..7b1c063 100644 --- a/packages/relayer/src/core.rs +++ b/packages/relayer/src/core.rs @@ -202,7 +202,10 @@ async fn accept( reference: None, reply_to: None, body_plain: format!("An error occurred: {}\n\nEmail Body:\n{}", e, email_body), - body_html: format!("

An error occurred: {}

Email Body:

{}
", e, email_body), + body_html: format!( + "

An error occurred: {}

Email Body:

{}
", + e, email_body + ), body_attachments: None, }; diff --git a/packages/relayer/src/lib.rs b/packages/relayer/src/lib.rs index 2d5bbfb..02590d6 100644 --- a/packages/relayer/src/lib.rs +++ b/packages/relayer/src/lib.rs @@ -119,9 +119,7 @@ pub async fn run(config: RelayerConfig) -> Result<()> { .set(config.relayer_email_addr) .unwrap(); SMTP_SERVER.set(config.smtp_server).unwrap(); - ERROR_EMAIL_ADDR - .set(config.error_email_addr) - .unwrap(); + ERROR_EMAIL_ADDR.set(config.error_email_addr).unwrap(); // Spawn the API server task let api_server_task = tokio::task::spawn(async move {