use static_files() for email attachments

Apply suggestions from code review

Co-authored-by: Mathijs van Veluw <black.dex@gmail.com>
This commit is contained in:
Stefan Melmuk
2022-10-06 11:59:47 +02:00
parent ea19c2250e
commit 4289663a16
4 changed files with 5 additions and 4 deletions

View File

@@ -767,7 +767,7 @@ fn generate_smtp_img_src(embed_images: bool, domain: &str) -> String {
if embed_images {
"cid:".to_string()
} else {
format!("{}/vw_static/", domain)
format!("{domain}/vw_static/")
}
}