From fc59757a9daa211646c98afc7c51e68046eaf54f Mon Sep 17 00:00:00 2001 From: Perma Alesheikh Date: Tue, 9 Jan 2024 14:36:04 +0330 Subject: [PATCH] remove another unnecessary conversion Reasons: - Avoid unnecessary conversion, since into is called on an String value when String is expected, anyway. Signed-off-by: Perma Alesheikh --- src/email/message/template/command/write.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/email/message/template/command/write.rs b/src/email/message/template/command/write.rs index 687f475..e05b342 100644 --- a/src/email/message/template/command/write.rs +++ b/src/email/message/template/command/write.rs @@ -41,12 +41,11 @@ impl TemplateWriteCommand { self.cache.disable, )?; - let tpl: String = Message::new_tpl_builder(&account_config) + let tpl = Message::new_tpl_builder(&account_config) .with_headers(self.headers.raw) .with_body(self.body.raw()) .build() - .await? - .into(); + .await?; printer.print(tpl) }