remove unnessary conversions to itself

Reasons:
- Remove unnecessary steps. into() is called on String when the expected
  type is already String.

Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
Perma Alesheikh
2024-01-09 14:29:52 +03:30
committed by Clément DOUIN
parent a6440aaa27
commit 0b066b7529
3 changed files with 6 additions and 9 deletions
+2 -3
View File
@@ -152,7 +152,7 @@ impl MessageReadCommand {
// display what can be displayed
bodies.push_str(&String::from_utf8_lossy(email.raw()?));
} else {
let tpl: String = email
let tpl = email
.to_read_tpl(&account_config, |mut tpl| {
if self.no_headers {
tpl = tpl.with_hide_all_headers();
@@ -166,8 +166,7 @@ impl MessageReadCommand {
tpl
})
.await?
.into();
.await?;
bodies.push_str(&tpl);
}