mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-08 18:45:13 +00:00
remove unnecessary into_owned
Reasons: - Remove unnecessary step. - Avoid allocation when not needed. Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
parent
2af1936ef8
commit
a6440aaa27
|
@ -150,7 +150,7 @@ impl MessageReadCommand {
|
||||||
if self.raw {
|
if self.raw {
|
||||||
// emails do not always have valid utf8, uses "lossy" to
|
// emails do not always have valid utf8, uses "lossy" to
|
||||||
// display what can be displayed
|
// display what can be displayed
|
||||||
bodies.push_str(&String::from_utf8_lossy(email.raw()?).into_owned());
|
bodies.push_str(&String::from_utf8_lossy(email.raw()?));
|
||||||
} else {
|
} else {
|
||||||
let tpl: String = email
|
let tpl: String = email
|
||||||
.to_read_tpl(&account_config, |mut tpl| {
|
.to_read_tpl(&account_config, |mut tpl| {
|
||||||
|
|
Loading…
Reference in a new issue