mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
clippy: fix needless_borrow
This commit is contained in:
@@ -194,7 +194,7 @@ impl HtmlMsgParser {
|
||||
if mimetype.type_() == mime::IMAGE {
|
||||
if let Some(cid) = mail.headers.get_header_value(HeaderDef::ContentId) {
|
||||
if let Ok(cid) = parse_message_id(&cid) {
|
||||
if let Ok(replacement) = mimepart_to_data_url(&mail).await {
|
||||
if let Ok(replacement) = mimepart_to_data_url(mail).await {
|
||||
let re_string = format!(
|
||||
"(<img[^>]*src[^>]*=[^>]*)(cid:{})([^>]*>)",
|
||||
regex::escape(&cid)
|
||||
|
||||
Reference in New Issue
Block a user