mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 22:06:29 +03:00
perf: enable clippy::large_futures lint
Large size of Mimefactor.render() futures increases the size of all callers down to set_config() and background_fetch(). I also had to Box::pin one call to fetch_new_msg_batch and one call to fetch_single_msg.
This commit is contained in:
@@ -580,7 +580,7 @@ async fn send_mdn_rfc724_mid(
|
||||
)
|
||||
.await?;
|
||||
let encrypted = mimefactory.will_be_encrypted();
|
||||
let rendered_msg = mimefactory.render(context).await?;
|
||||
let rendered_msg = Box::pin(mimefactory.render(context)).await?;
|
||||
let body = rendered_msg.message;
|
||||
|
||||
let mut recipients = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user