From 873749b0bb3ffdb46a4eb8474eb70ef86cb1b8ed Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Thu, 8 Feb 2024 23:23:50 +0100 Subject: [PATCH] refactor(inclusion_monitor): prefer character push --- src/phoenix/inclusion_monitor/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/phoenix/inclusion_monitor/mod.rs b/src/phoenix/inclusion_monitor/mod.rs index 5d4209b..91b8992 100644 --- a/src/phoenix/inclusion_monitor/mod.rs +++ b/src/phoenix/inclusion_monitor/mod.rs @@ -243,7 +243,7 @@ async fn report_missing_payload( let publish_errors = loki_client.error_messages(slot).await?; if !publish_errors.is_empty() { - message.push_str("\n"); + message.push('\n'); message.push_str("found publish errors"); for error in publish_errors.iter() { let error_message = { @@ -257,11 +257,11 @@ async fn report_missing_payload( ); telegram_escape(&error_message) }; - message.push_str("\n"); + message.push('\n'); message.push_str(&error_message); } } else { - message.push_str("\n"); + message.push('\n'); message.push_str("no publish errors found"); }