diff --git a/src/export_chat.rs b/src/export_chat.rs
index 809c300fd..3fdfefc0d 100644
--- a/src/export_chat.rs
+++ b/src/export_chat.rs
@@ -149,16 +149,20 @@ pub fn export_chat(context: &Context, chat_id: ChatId) -> ExportChatResult {
let chat = Chat::load_from_db(context, chat_id).unwrap();
let chat_avatar = match chat.get_profile_image(context) {
Some(img) => {
- let path = img.file_name()
+ let path = img
+ .file_name()
.unwrap_or_else(|| std::ffi::OsStr::new(""))
- .to_str().unwrap().to_owned();
+ .to_str()
+ .unwrap()
+ .to_owned();
blobs.push(path.clone());
format!("", path)
- },
+ }
None => format!(
"