Skip to content

Commit

Permalink
Apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wshino committed Oct 23, 2024
1 parent d0cb9c6 commit 2747c1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/relayer/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!("<p>An error occurred: {}</p><p>Email Body:</p><pre>{}</pre>", e, email_body),
body_html: format!(
"<p>An error occurred: {}</p><p>Email Body:</p><pre>{}</pre>",
e, email_body
),
body_attachments: None,
};

Expand Down
4 changes: 1 addition & 3 deletions packages/relayer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2747c1b

Please sign in to comment.