Fix attachment formatting

This commit is contained in:
Thomas Gideon 2023-07-15 21:56:45 -04:00
parent 17e99518ce
commit 4dae4360cc

View file

@ -57,6 +57,8 @@ fn format_attachments(depth: usize, attachments: &[Attachment]) -> String {
if attachments.is_empty() {
String::default()
} else {
format!(
"\n{}",
attachments
.iter()
.map(|a| {
@ -71,5 +73,6 @@ fn format_attachments(depth: usize, attachments: &[Attachment]) -> String {
})
.collect::<Vec<String>>()
.join("\n")
)
}
}