Enable clippy::unused_async lint

This commit is contained in:
link2xt
2022-06-02 10:12:04 +00:00
parent 4f02c811a3
commit 0a51db3005
7 changed files with 31 additions and 37 deletions

View File

@@ -1391,11 +1391,7 @@ impl Chat {
} else {
msg.param.get(Param::SendHtml).map(|s| s.to_string())
};
if let Some(html) = html {
Some(new_html_mimepart(html).await.build().as_string())
} else {
None
}
html.map(|html| new_html_mimepart(html).build().as_string())
} else {
None
};