style(902): Fix clippy complaining about cast

This commit is contained in:
nexy7574
2025-07-09 15:28:31 +01:00
parent 7b60f5368d
commit ce84c46459
+2 -1
View File
@@ -178,9 +178,10 @@ pub async fn text_or_file(
.text_to_file(message_content.body())
.await
.expect("failed to create text file");
let size_u64: u64 = message_content.body().len().try_into().map_or(0, |n| n);
let metadata = FileInfo {
mimetype: Some("text/markdown".to_owned()),
size: Some(UInt::new_saturating(message_content.body().len() as u64)),
size: Some(UInt::new_saturating(size_u64)),
thumbnail_info: None,
thumbnail_source: None,
};