mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-25 01:05:17 +00:00
style(902): Fix clippy complaining about cast
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user